4
votes
2answers
201 views

CMYK colours changing

If I draw a coloured diagram like Graphics[{CMYKColor[0, 0.83, 1, 0], Rectangle[{0, 0}], CMYKColor[1, 0, 0, 0], Rectangle[{0.5, 0.5}]}] and select the red ...
4
votes
1answer
157 views

Can I compile a function containing ArcTanh?

Can I compile a function that contains ArcTanh[]? The following doesn't work Needs["CCodeGenerator`"] c = Compile[ {{x}}, ArcTanh[x]^2]; c[2.5] Mathematica gives ...
0
votes
0answers
44 views

Eigenvalues of a matrix, rhombus/hash sign [duplicate]

I wanted calculate the eigenvalues of A = {{0, 1, 0, 0}, {a, b, c, 0}, {0, 0, 0, 1}, {d, 0, e, f}} Then assigned the parameters a value ...
2
votes
1answer
155 views

Fraction Alignment in Plot Export to JPG [duplicate]

I've produced some plots that have fractional tick labels on the horizontal axis and they look fine. ...
0
votes
0answers
32 views

Custom FrameTicks not working [duplicate]

I would like to have a custom ticks on x-axis on my ListPlot, but nothing is showing, what am I doing wrong? ...
5
votes
1answer
208 views

Embedding StreamPlot in Graphics3D

I am trying to visualise the action of the infinitesimal generator of a Lie group on the solution of a 2-ODE system drawn in the 3D space (t,y1,y2): t is time and y1,y2 are the two dependent ...
1
vote
1answer
149 views

Input text field GUI [duplicate]

Is there a way to input multiple rows of text and save it as a variable? Like an InputField, but with multiple rows? I would like to make a simple text redactor, so that I could enter a text and then ...
7
votes
2answers
157 views

Can I Print to a different notebook? (within the context of the same kernel)

Please imagine a simple loop: For[i=1,i<=100,i++, Print[i]; ]; We can ask Print[] to output $(1,2,3,4,...)$ to a ...
7
votes
1answer
98 views

Why does Rescale performance vary significantly based on the real number values in a list?

I have a list of the form: testList = Table[{Flatten[RandomReal[{-200, 200}, {1, 2}], 1], RandomReal[{-200, 200}, {69, 2}]}, {i, 1, 100}]; And I would like to ...
3
votes
2answers
119 views

Creating a trigger to update a previous ListPlot output with new data

Imagine I'm running a loop that's manipulating and changing elements in an array. Is it possible for me to create a ListPlot output in my notebook that updates on ...
0
votes
1answer
179 views

Non-linear equation system 3 equations and 3 variables [closed]

Can anyone please help me solve this system? 9.208x-3*y=0 -3x+3.208y+5*z=0 x^2+y^2+z^2=1 Thanks!
6
votes
0answers
152 views

Finding hidden treasure (aka finding undocumented functions) [duplicate]

I was searching for a way to determine if a point is within a polygon and stumbled upon rm -rf's answer. (actually, I really wanted to find a point within a ...
6
votes
1answer
559 views

How do I calculate Standard Deviation confidence intervals in Mathematica?

I have a series of simulation results and I would like to demonstrate how the confidence interval for the mean and standard deviation decrease as the number of results increases. I have done this for ...
2
votes
1answer
562 views

How to show factorial in expanded form with variables

When evaluating the following (Factorial[n + 1]/Factorial[(n + 1) - (k + 1)]) with Mathematica 9, the result is sent to output as ...
5
votes
2answers
880 views

How to find the non-differentiable point(s) of a given continuous function?

For example, the non-differentiable point of the function $f(x)=|x|$ is at $x=0$. How to find the non-differentiable points of a continuous function that is defined numerically?
4
votes
2answers
537 views
9
votes
1answer
520 views

Example program for calling Mathematica from C

I want to call Mathematica from a C program. Suppose I have two numbers x =2 and y=3. I want to define the x, y in a C program and call Mathematica and I want Mathematica to do the sum and return me ...
8
votes
3answers
426 views

Create sine function with random increase in phase

I am trying to simulate a signal that randomly increases its phase, so far I have tried two thing but neither worked. I usually use matlab but I want to learn some Mathematica so I thought I would try ...
11
votes
1answer
292 views

Can Manipulate controls have the option Appearance -> “Labeled” by default?

I was wondering if there's a way to tell Mathematica to use the option Appearance -> "Labeled" for all Manipulate commands by ...
4
votes
1answer
168 views

How to change the aspect ratio with drawing tool?

I'm drawing an image in editing an slide show with the drawing tools. But the aspect ratio of the created drawing seems fixed and not changeable with mouse dragging the border and corner as in other ...
6
votes
2answers
2k views

Need 4D plot (3D + color for function) [duplicate]

I have a function f(x,y,z) of three variables and some constants: ...
11
votes
1answer
666 views

Solving Killing equations

Is it possible to solve Killing equations in Mathematica for a general vector? I am looking for a way to create Killing equations and then find what the vectors are, but I have a problem with this. ...
4
votes
1answer
97 views

Error from BoundedDiagram

I cannot understand the meaning of the error BoundedDiagram::notuniq: BoundedDiagram requires that boundary vertices lie in unique Voronoi polygons. >> BoundedDiagram::nobd: Bounded ...
3
votes
1answer
240 views

Vertex Labeling Problem in a Graph

I am using following codes to create a graph. ...
0
votes
2answers
113 views

Summation limits [closed]

The Sum is a built-in function in Mathematica, so the summation limits must be assigned. What I need to know is how to use a value computed in a separate ...
2
votes
1answer
114 views

Can Map operations be compiled or otherwise sped up for large lists?

I'm performing a series of Map operations in the following script: ...
1
vote
1answer
415 views

Custom ticks failing with Frame

I know I can manipulate ticks: ...
13
votes
1answer
444 views

Size distribution of nanoparticles from a transmission electron microscopic image

I have found a research article about Martian sand grain size determination from the image using Mathematica (Figure 2 in the linked article). They have not provided any detail of the methodology. It ...
2
votes
1answer
330 views
6
votes
2answers
571 views

Voronoi Diagram: Displaying site specific color in a voronoi diagram

I am using Voronoi Poligonization as a support form simulating island erosion; my data are the output of VoronoiDiagram, ...
1
vote
2answers
198 views

How to apply function f for each time value t, to each pixel from image, resulting in t images

I have a 2D array of complex values and I want to apply a function to every entry of the array, for every timepoint t in a list. I know how to apply my function to one entry for every time t in a ...
3
votes
3answers
436 views

StreamPlot using NDSolve gives error messages

StreamPlot[{x[0], x'[0]} /. NDSolve[{x''[t] == 1, x'[0] == v0, x[0] == x0}, {x, x'}, {t, 0, 1}], {x0, -2, 2}, {v0, -2, 2}] The above code gives me the errors ...
2
votes
2answers
64 views

Constrain movement of Locator (increased t-value)

Continuing with the code at the end this topic, I am now searching for a way of constraining the movement of the locator so that it doesn't "jump" from one "part" of the graph of f to another. So, if ...
10
votes
2answers
164 views

Can I define new graphics directives?

Is it possible to define new graphics directives? For example, suppose I want to be able to use the following code: ...
2
votes
3answers
260 views

Minimization problem

How could you find the smallest constant $c$ that satisfies $$\frac{3^{3k}e\sqrt{3}}{\pi\sqrt{k}\;2^{3/2+2k}} \leq 2^{\;c\;k}$$ assuming $k\geq 1$ is an integer. You can of course take logs of ...
4
votes
1answer
226 views

Creating a function to simplify WolframAlpha query

When I can't remember an integral I usually just query wolfram and have it show steps. This was my naive attempt at trying to make a simpler function. ...
6
votes
2answers
182 views

Get information about a stack of images, without plotting it

A very long time ago I used Mathematica for a few months and found it very intuitive. Now for my work I use MatLab. I was just trying some stuff out with Mathematica again and there is something I ...
-1
votes
2answers
94 views

Palette for pasting matrix templates into a notebook

How I can build a palette of matrices?. So, I would like a palette with a 3x3 square matrix, a square matrix 4x4, 1x3 row matrix, 1x4 matrix row, column matrix 3x1 and 4x1 column matrix.
2
votes
1answer
112 views

Interaction between two sliders that update the same variable

I'm basing this on the code found in the Introduction to Dynamics. I added one more slider which doesn't use the "round and snap" feature given in the link above: ...
2
votes
1answer
83 views

Constrain movement of Locator

Continuing the discussion started in the thread here, I've tried to recreate the code from scratch. I thus looked to constrain the movement of a locator to the graph defined by ...
6
votes
3answers
272 views
4
votes
2answers
141 views

Speeding up Position for finding the indices of a small number of integer elements in a large matrix

I have a large $100 \times 4000$ element matrix composed of integer elements, testMatrix, and I was to use Position to find the ...
2
votes
2answers
103 views

Extracting variables from Hold expression

For example I have some global assignments x=1;y=2;z=3 and an expression Hold[x*y/z]. How can I now extract variables ...
0
votes
0answers
51 views

Construct matrix B from columns of matrix A? [duplicate]

Starting with Mathematica and working with matrices, I am looking for a way to construct a new matrix B from columns of matrix A. For example, matrix a has 8 columns and 4 rows, I want matrix B to be ...
0
votes
1answer
130 views

Generating an array using list values at indices corresponding to entries in a separate list satisfying some criterion

Imagine one has an array of integer value sets that looks like this: ...
11
votes
1answer
105 views

Slideshow mode: how to cycle slides automatically?

I'm doing a slideshow for an informative conference, so I need a slideshow running in background on some monitors. My question is: is there any way to make Mathematica to cycle slides automatically? ...
17
votes
3answers
830 views

Generate a Random Polygon

Does some package exist with a function that takes a parameter $n$ and generates a random 2D $n$-sided simple polygon (convex or non-convex), possibly within a certain bounding box? It does not ...
0
votes
1answer
145 views

johansen test error in code

Cross-posted at the Wolfram community forum I have found this code on a forum, apparently it worked in a previous version of mathematica. Now when I run it, it keeps running for ages. I am not able ...
12
votes
5answers
533 views

How to remove duplicate characters from a string?

How do you remove duplicate characters in a string without converting the string to a list. I want to delete all duplicate characters in a string (i.e. get the unsorted union of characters). For ...
0
votes
0answers
117 views

How to simplify really complicated symbolic expression?

I have an expression that contains Sinh[x], Cosh[x] and Sin[g], and I want to simplify it ...

15 30 50 per page