# All Questions

110 views

### DeleteMissing issues [duplicate]

Has anyone had problems with the DeleteMissing function in Mathematica 10.0.2? I find that it rarely works. Most of the time it returns a list which still contains ...
64 views

### Subscript und Superscript in FrameLabel and Export

I'm creating plots that I want to export as png. Which works, but when I add sub- or superscript into the FrameLables or get 10^x in LogPlots the sub- or superscript letters in the exported png will ...
45 views

### How to prevent factorial from being evalauted?

Suppose I have: Do[Print[i/i!], {i, 1, 10}] I would like the output to be like: 1/1!, 2/2!, 3/3! , ...,10/10! However, when I use the code above the ...
111 views

### Deleting or replacing inner elements depending on higher level elements

Consider a data structure like: ...
44 views

### BarChart with relative abundances as chart labels

I want to make the following bar chart, but with relative abundances on top of the chart labels. I get the absolute numbers, but not the relative abundances: ...
437 views

### I define a variable as local to a module BUT then the module uses its global value! Why?

I have a question about modules and local variables. Here's my example: h = 5; Module[{a, h}, a[h_]= h^2; a[4]] (*Out[2] = 25*) I expected the module to ...
61 views

### List of parameters to manipulate from an external list

I am trying to achieve the functionality of the following command: Manipulate[ z, {z, 0, 1}] but with passing the list of parameters into ...
113 views

### 3D plot of concave data set

I have the following data set ...
84 views

### What's the name of the default font used in Mathematica 10?

I really like the default font in Mathematica 10. So I would like to use it for my other applications. I tried to search for the name of the font, only found that a lot of people is talking on how to ...
97 views

I just installed Mathematica 10 on Windows 7 today. Everything works fine, except the shortcut Ctrl-V doesn't paste, it opens the "Find and Replace" dialog. I tried ...
114 views

### Assigning new value in association

I experienced a problem in changing values in an association and broke down the problem to the following: Given a list of association (here with one element): ...
120 views

### NIntegrate and Integrate of a Spherical Bessel function

I am trying to integrate over a spherical bessel function. I have used both the Integrate and NIntegrate functions in Mathematica but the values given by each do not match. Any reason why this ...
65 views

### Showing Legend in Wolfram Mathematica

The code below displays a histogram of the data and superimposes plots of five Weibull distributions for comparison. I have assigned colors to each Weibull curve in the distribution plots. How can I ...
383 views

55 views

### Show function doesn't plot two graphics [duplicate]

I've got a following code snippet: ...
63 views

### Piecewise function and integral function

Given a piecewise function f[t_]:=Piecewise[{{Exp[-1/t^2],t>0},{0,x<=0}}], I can define another function like this: ...
161 views

### How do I remove the quotation marks from each element of a list containing dates that I have import from excel?

I've been stuck in this problem for 1 week. I just want to make a graph (Log-Return vs time (in year, month, day)). The code is: ...
262 views

### How to avoid NDSolve::ndsz problem (singularity problem)

I have the next model ...
182 views

### Does RegularExpression support “(?R)”?

Mathematica's RegularExpression is based on Perl's PCRE library, which supports recursive regular expressions using (?R) (or, ...
171 views

### Limit characters/digits entered into InputField

When using InputField, whether setting the input type as a Number or String, is there a way ...
51 views

### Assigning a value to specific product [closed]

I was wondering if there is a way to assign a value to a specific problem. For example if I wanted $a\cdot a$ to equal $-1$. How would I go about doing that?
106 views

### How to prevent tiny complex errors in Integrate?

Integrate is adding a tiny imaginary error to an easy result. Why? And how can I stop it? ...
108 views

### FunctionInterpolation with vector output and scalar input

Apparently it is possible to build and InterpolatingFunction that accepts a vector input and returns a vector output: ...
68 views

### What to use instead of ReplaceAll to replace a parameter with a number before the evaluation of an integral?

This is probably very simple but I don't see the solution now. Let us say I have a variable e defined as e=n ReplaceAll can subsitute n with value 3 using ...
79 views

### Is there a global setting for number form

Im creating strings which represent equations in C to use with library link. The problem i have is that numbers in scientific form, when converted to strings, are no longer useful. e.g. ...
47 views

### Unable to start the front-end

I just updated to Mathematica 10.0.2, and was hoping that it would fix a problem that I had been having where I go to run Mathematica and nothing comes up. If I open task manager, I can see that ...
43 views

### ColorFunction in GeoRegionValuePlot

I don't understand ColorFunctions so any general pointers will be greatly appreciated. My specific question is the following. I want to animate a GeoRegionValuePlot. In the toy case below I have two ...
72 views

### How can you set the scale ticks in a Gauge?

I can't seem to access a FrameTicks type option for setting the values of frame ticks on the axes of a Gauge. Below is an ...
59 views

### SparseArray output triggers “unsafe dynamic content” warning

The first basic example in the documentation of SparseArray: ...
118 views

### Nash equilibrium in game theory?

Are there examples of the solution of Nash non-cooperative games with mixed or pure strategies? How could be implemented in Mathematica 10?
55 views

### Plotting a function with multiple colors, without modifying ColorFunction

I have a function $f$ and a set $U$, and I would like to plot $f$ with a different color on and off $U$. At the moment, I am using a ColorFunction with an "if" ...
75 views

### Background of PlotMarkers

I use the StandardReport style sheet in my notebooks, but I would like to export plots without any backgrounds. Apparently, there isn't a global option to change the background on a plot, so I change ...
53 views

### why RegionPlot has cut in ring when changing plot range?

I am not sure I understand this one, thought to check with the experts. Please compare ...
74 views

### My code of plotting a two-variable function is too slow [closed]

I have a code in which my complicated function to be plotted is F(x,p). I would like to graph it for 5 values of p equal to 10^7, 10^8, 10^9, 10^10 and 10^11 for x values between 0.01 and 0.99. All ...
142 views

Workbench 2.0 was an extremely useful tool for Mathematica Developers. I received an early release of Workbench 3.0 to work through debugging issues encountered with Mathematica 10 and Workbench 2.0. ...
260 views

### What is primary, function computation or function application?

What is the order of computations here? g[x_]:=x^2; f[x_]:=Sqrt[g[x]]; Map[f, Range[100]] Does this code first get $f(x)=x$ and then gives its values or for ...
48 views

### Dynamic check box with import!

Here what i am trying to do: I have a list of the names of excel files, for example s={"red carpet.csv","red box.csv","black carpet.csv","black box.csv"}; i am ...
145 views

### Problem with FindRoot applied to functions

I am having difficulty with the error "is not a list of numbers with dimensions..." when using FindRoot (and other numerical routines in Mathematica) to solve equations numerically when the argument ...
58 views

### Enormous and unclear output when using Solve

After running for about 30 minutes the program yields the below-given unclear output (of course I didn't copy the whole output, only a small part of it). So it explicitely gives 3 possible solutions ...
108 views

### The inverse Fourier transform of a rather complex function

I am using Mathematica 7.0 and trying to find the Fourier transform of a rather complex function g. The function g is defined by ...
63 views

### Using the string Match with options! [duplicate]

Here is what I want to do: I have a list of strings for example s={"red carpet","red box","black carpet","black box"} I want to use something like ...
511 views

### Mathematica style guide?

I encountered this site today https://code.google.com/p/google-styleguide/ regarding the programming style in some languages. What would be best programming practices in Mathematica, for small and ...
75 views

### Selecting values over lists for discrete inputs in NDSolve

I'm currently trying to simulate a step response in a simple tank system with NDSolve. I would like it to start at say time 2 (the precise time is not important). ...
84 views

### Wrong generalized eigenvalues of large numeric matrices

I've been working on a toy model of a variational method of a Hamiltonian H with an overlap matrix S. The point is that when H and S are small enough, Mathematica gives the correct eigenvalues (≈ ...
106 views

### TransformedRegion, RegionPlot broken in 10.0.2.0?

After having had trouble applying TranslationTransform to a simple region like so ...
378 views

### Graphics3D: Objects with holes

In a recent project, I found out that there is a big limitation when using Graphics3D to construct objects - it lacks the ability to construct objects with holes in ...
121 views

### No legends in parametric plot

plotting some descibing functions, I wondered why I don't get any legends in my plot. The describing functions (and options): ...
154 views

### Checkerboard background on plot (potentially using prolog)?

Currently I have a plot of a complicated function with gridlines turned on. Is there a way to shade a checkerboard pattern of alternating colors between adjacent grid cells? So far, I have tried ...