# All Questions

32 views

### Add a legend to a DiscretePlot - Version 8 [duplicate]

I have found several topics with legend issues but no answer to my problem. I have a function and I need to plot it for integers only (hence discrete plot) and then add a legend too. But ...
42 views

155 views

### How can I use ContourPlot to creat streamline for a free surface domian: proper arrow orientation and correct domain?

I get into trouble when I use ContourPlot to draw streamlines in a free surface flow domain. This is my data.The data are a little bit big, please be patient. ...
107 views

### ParametricPlot3D: The Mesh shows some unexpected wires to the origin. How to remove them?

In the code below a hexagonal shape is defined and plotted. The ParametricPlot3D shows the hexagonal design almost as intended. However, the mesh makes some strange "wires" to x=y=0. This is ...
115 views

### Specifying and solving a PDE on an L-shaped domain

I wish to solve Laplace's equation with Dirchlet boundary conditions on an L-shaped domain as described here http://www.inf.ethz.ch/personal/tulink/FEM14/Ch1_ElmanSyvesterWathen_Ox05.pdf I know how ...
68 views

### 'eps' equivalent in Mathematica

In Matlab there is a function 'eps'. eps Spacing of floating point numbers. D = eps(X), is the positive distance from ABS(X) to the next larger in magnitude floating point number of ...
17 views

### How to share ChartLegends among multiple BoxWhiskerCharts in GraphicsGrid?

First, create two BoxWhiskerChart: box1 and box2 ...
33 views

### Help needed for solving nonlinear ODEs [closed]

I want to solve fourth order nonlinear ODE with known boundary conditions using Predictor Corrector methods, or shooting methods in Mathematica but don't know how to solve them with these techniques. ...
50 views

### Joint Distribution with a Constant

I would like to simulate from a joint distribution multiplied by a constant. e.g. 3*NormalDistribution[0,1]*NormalDistribution[1,1] I tried using something like ProductDistribution but that doesn't ...
47 views

### PEANO Integers using successor function

I'd like to define the integers and operations on it by using terms. Starting from zero->init[] and nth->succ[n-1th] where succ[] is the successor function. I ...
120 views

### Minimizing a function with a constant $l > 0$

I'm VERY new to Mathematica and would like some help with minimizing a function. $$f(x) = \frac{1}{2} \sqrt{\frac{\left(l^4+x^4\right)^2}{l^4 x^2}}$$ I want to find which $x-value$ (probably ...
50 views

### Function Expectation

I want to have a function result from this expectation is it possible? ...
33 views

### Product Distribution with Copula

I am trying to create a joint probability function that is of the form: f(a,b,c)=f1(a).f2(b).f3(c).copula where ...
66 views

### Dynamic overlay of graphics and plot while maintaining uniform coordinates

I have a plot and a graphic that I want to overlay onto one another while retaining a uniform sense of coordinates throughout the whole thing. I have tried to do this two ways and both suffer from ...
16 views

### Interpolation using 3 input function [closed]

I'm trying to interpolate a function: I have 3 inputs: x1,f1 x2,f2 x3,f3 and I want to have at the output a function of f1, f2 and f3. xout=g(f1,f2,f3) I don't know how to do it on Matlab. the ...
55 views

### Discrete Fourier Transform with x axis data?

Usually, Fourier Transform in mathematica is supplied by y data only, like the famous Sin[x] transform example. What if my data is a list of ...
37 views

### Can I use Interpolating function as an input in another NDSolve?

it´s my first time here, so let me know if I've not been clear. I'm trying to solve a numerical diferential equation, but my equation contains two numerical solutions from a previous problem. Of ...
64 views

### Astronomy: Transform coordinates from horizon to equatorial

I'm using Mathematica 10. Giving a longitude & latitude on Earth, giving a local time, how can I transform Horizon Coordinte (az , alt) to Equatorial Coordinate (RA , DEC). Use function so I can ...
32 views

### coordinate system problem

I had an issue about the coordinate system of mathematica. I have a {800,600} image acquired with a camera. The projection matrix P of the camera is calculated using the calibration task. Now, when I ...
46 views

I'm using "Compile" to do some numerical calculation and I need high Precision. I was wondering if it is possible to change the Precision in command "Compile" to some $MinPrecision? 1answer 72 views ### EMF format imported in Word looks worse in version 10 In my work, I frequently use the "CopyAsMetafile" and "Paste" function in my Word document. Recently, I started working with Mathematica version 10 and negatively surprised that the display of ... 1answer 80 views ### Derivative of a plot [closed] I plotted a graph numerically, so I don't have a definition of the plotted function. Now I want to plot the derivative of this graph. Is there any way to do it in Mathematica? I have the following ... 3answers 55 views ### Import Data using selection criteria I imported a file (text and numbers) and made constructed this. e[[1,All,{1,2,3,4,6}]] Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New ... 2answers 81 views ### Module function corrupts string? [closed] I have the module who should replace some elements of a matrix with checkboxes ... 2answers 221 views ### Speed up calculation First of all thanks to: rm -rf, Mr.Wizard, Simon Woods, Pickett, Piotr Wendykier, Mac, Yves Klett, belisarius, halirutan, bill s, nikie, wxffles, ... Everybody of you helped me (a mathematica ... 5answers 246 views ### Select a particular rules out of a list rule = {beta -> 4, alpha -> 2, x -> 4, z -> 2, w -> 0.8} Select[rule, beta] Select[rule, beta &] Select[rule, beta -> _ &] How would I ... 0answers 53 views ### Drop all powers from multinomial [closed] How to automatically replace an expression like x^3 y + x y z^2 by x y + xyz in Mathematica, i.e. replace all ... 1answer 83 views ### My matematica notebook dosen't work,its bring syntax error ,why? i have many matematica notebooks and all of them are working clearly besides one which is the most important for me.There is my whole project.Please someone help me.What should i do??? 2answers 79 views ### Replace variables and redefine a function I would like to redefine a function f(x)=1+2x^2 to a new function g(y)=1+2y by using the replacement ... 2answers 214 views ### Difference between Association and Dispatch In the example below, Association has a different behavior from Dispatch: ... 3answers 159 views ### Is it possible to find generating functions of infinite sequences with Mathematica? I'm trying to find the generating function of a sequence as$(0,1,0,1,0,1,\dots)$but reading Mathematica's help on FindGeneratingFunction[] seems to tell me that ... 1answer 33 views ### How to use rules in simplify this expression? D[1/(1 + Exp[-x]), x] % /. {1/(1 + Exp[-x]) -> p} Suppose I know that the rule can be applied, but Mathematics just won't do it straight away as the expression ... 0answers 31 views ### Export to PDF file and use in latex, weird behaviour from using Acrobat I have put all files here. All pictures are Exported from Mathematica 10.0.1 X64 (win7) using Export["filename.pdf",plotobject]. I first complied the latex file, ... 2answers 103 views ### Josephus problem See the Josephus Problem. My code takes in two numbers; one is the number of participants, and the other is supposed to be the number of players skipped between executions. ... 1answer 73 views ### Matrix form of complex numbers [closed] Complex numbers have matrix form. But some 2x2 matrices while differ, represent the same complex number. To compare complex numbers one has to transform the matrices to the form \begin{pmatrix} a ... 3answers 113 views ### Colorize an image using two parameters I have a matrix of data. I use Colorize[Image[Rescale[data]],ColorFunction->"Rainbow"] to create an image from the data where the value of each pixel is used ... 2answers 63 views ### Compile a Module wich has a loop with undetermined bound Suppose I have such a module as below: test[int_] := Module[{m}, m = Table[i, {i, 1, 10}]; Do[m[[i]] = i*i, {i, 1, int}]; Return[m] ] The bound for ... 0answers 64 views ### Cloud cover fraction I need to make use of Mathematica's WeatherData functionality, the CloudCoverFraction property, specifically. However, it does ... 1answer 112 views ### Mathematica can't export$\sqrt{}\$

It looks like version 10 can't export to pdf correctly with square root. For example: ...
76 views

### Froze Mathematica and now it's buggy [closed]

Today I was trying to generate some fractals, and I had the bright idea to generate an over 10000px by 10000px image. When I went to save it, mathematica froze up and my computer told me I was running ...
67 views

### RandomVariate form a Specific Distribution with Restrictions

There are a lot of questions about generating random numbers form both uni-variate and bi-variate distributions. Mathematica has a lot of built in distributions for that purpose. However, I could not ...
52 views

### Simple recursive function?

I'm new in Mathematica and need some help. I'm trying to make a recursive function but I'm not sure how to iterate through more than one item. To be more clear, take this pseudo code for example: ...
71 views

### Why is C-compiled (but not WVM-compiled) code so slow in Manipulate?

Here is a small section of code from this SE question which computes the real part of the dilogarithm (the upper limit of the sum is increased for demonstration purposes): ...
54 views

### pattern matching and applying a function, not working as expected [duplicate]

Consider the following code G[x, y] /. a_[b__] -> Total[a @@@ Permutations[List[b]]] I expect it to give G[x, y]+G[y,x] ...
68 views

### ListPicker with conditional selection

I am reading data from a SQL Database and want to manually sellect multiple rows. ListPicker works very nicely, the only added complication is that I need to not only select the records, but also ...
57 views

### FullSimplify wont simplify to expression with lower SimplifyCount

I have been trying without success to get FullSimplify to work on some trigonometric expressions. It refuses to convert them to forms that are clearly much ...
50 views

### Manipulate plot [duplicate]

How can one do this: ...
78 views

### Design matrix rank does not match

I'm attempting to fit a linear model and Mathematica returns the error message: "The rank of the design matrix 9 is less than the number of terms 10 in the model. The model and results based upon it ...