1
vote
1answer
45 views

Difference between `StringJoin` and `StringExpression`

When does one need StringJoin as opposed to StringExpression? I don't know of an example where ...
1
vote
1answer
141 views

Crop the object area in an mage [closed]

How to crop the object in the image by black pixel or white pixel area. I want the idea or any code for this. Bounding box is in Matlab. But here we are not have the bounding box options. ...
1
vote
2answers
51 views

substitute tangents plane in a function [duplicate]

Let f:= x^5+x^2*y*z^2+z^3*x*y; and let S= {{2,1,0},{7,7,1},{5,1,0},{3,0,1}} be a set of points . I need to calculate the tangent ...
9
votes
2answers
352 views

Create new notebook at fixed size

Using Ctrl+n we are effectively doing FrontEndTokenExecute["New"] and, at least on Windows, new window has WindowSize equal to ...
3
votes
2answers
119 views

Show Factorial instead of Gamma in the result of RSolve

Now I wanted to solve for a recurring function with RSolve. Here's how I tried: ...
1
vote
0answers
84 views

How to understand the symbolic integral in a result returned by DSolve?

I am trying to solve an ODE like $$\frac{dF}{dx}=\frac{a}{\ln^3 x+[c+d(ax+b)][2\ln x+c+d(ax+b)]\ln x},$$ where $a,b,c,d$ are constants. I guess it could contain a special function, say, the ...
5
votes
3answers
144 views

Plot 2 plots together with different y-axis: in version 10 will not plot entire range

I am trying to plot 2 plots together with a common x-axis and different y-axis. I have tried implementing the modules shown in 1 Plot, 2 Scale/Axis however I do not see the full range of data in the ...
3
votes
0answers
140 views

Complex boundary conditions and NDEigensystem

I am having difficulties implementing a Neumann value when numerically solving the Navier equation using NDEigensystem. The Navier equation is given by $\nabla^2 \vec u + (p^2 - 1) ...
6
votes
1answer
496 views

Does Mathematica have a functional programming idiom to loop over a list till a condition is met? [duplicate]

The module below takes a list of integers and performs fadic addition on it (if a bit slowly). ...
-1
votes
1answer
73 views

Export table to latex - copy as

I have the following final expression which is a table (I am posting only a subsection of the table to illustrate the problem). I am pasting it from mathematica without table formatting (to the bottom ...
7
votes
3answers
82 views

TagSetDelayed on a function with a delayed value

I'm trying to automatically optimize cases when the user evaluates Length[returnsList[x_]] to instead use returnsLength: ...
0
votes
0answers
42 views

What is stored for a sparse matrix in memory?

I am wondering if a sparse matrix is stored in memory as a list which is its ArrayRules? The reason to ask this is I am trying to write a function to produce a large sparse matrix. However, I am not ...
2
votes
0answers
39 views

Product of two list of different size [closed]

This has to be very easy, but i can find it. I have 2 list a={8, 15, 12, 1, 13, 21, 14, 4, 15} b={3, 19, 29, 47, 13} What ...
4
votes
2answers
89 views

Defining arbitary Derivatives of functions

If I have two functions like these f[a_,b_] and g[a_,b_]. Lets say ...
1
vote
2answers
90 views

Displaying tensors

I want to display the values of a table with superscirpts and subscripts in a list as bellow. ...
1
vote
2answers
63 views

Solution to PDE with “MethodOfLines” is not returning any values

I have been working on this code for quite a while now trying different types of solutions and I cannot get any actual values out of the NDSolveValue function. I have included my code so you can see ...
4
votes
1answer
94 views

How to make the size of a control object larger/smaller?

I currently have a form with a picture label, ...
0
votes
1answer
106 views

How to colorize a 3D image [closed]

I have a 3D image where the values are in {1/4, 2/4, 3/4, 4/4} and its size is {134, 134, 67}. I used Image3D to display it. However, I am wondering if there is a possibility to colorize the image by ...
6
votes
1answer
163 views

Is it possible to apply a ColorGradient to a string Style?

After reading through the language reference on Style, ColorSchemes, ColorData and ColorFunction, I am at a loss as how to make a string appear with gradient colors. And now that I am curious, I am ...
2
votes
0answers
43 views

Add keyboard shortcut without creating a new menu item [duplicate]

I want to some key combination like CtrlShift+ to insert Print[ ]; into a workbook. I used ...
2
votes
2answers
50 views

Select Only Positive Values and Prepend a Title

I have the following list: ...
0
votes
1answer
85 views

Is it possible to project a 3D contour plot onto two dimensional space? [duplicate]

I like to draw project of ContourPlot3D into "p-q" plane, but is it possible to do it with Mathematica? Here is my ContourPlot3D: ...
3
votes
1answer
75 views

Polar plots ticks in degrees -180 to 180 [duplicate]

I am trying to create a polar plot with the ticks in degrees, but instead of 0 to 360, I want -180 to 180. PolarTicks -> {"Degrees", Automatic} gives 0 - 360, ...
0
votes
1answer
73 views

Invert and fit implicitly defined curve

I need to fit an implicitly defined curve. I thought I could get some data out of Solve, and then using FindFit. Therefore, I ...
0
votes
0answers
31 views

A complete list of quantities in Mathematica 9/10? [duplicate]

Often times when I'm traveling I don't have internet access and cannot reliably use Wolfram Alpha for unit look-up. Additionally, Alpha can always choose to change how it interprets the units I enter, ...
2
votes
2answers
82 views

How to scope variables in Manipulate (for Autorun)

This question is connected with that one (and all other connected). The purpose is to make a demonstration that has a Dynamic part among controls (I'm aware that it is not recommended, but ...
3
votes
1answer
64 views

Generate a new list

Suppose we have the following sample data ...
0
votes
1answer
91 views

How to animate a propagating wave?

How can I animate a progagating pulse wave in Mathematica, for example a gaussian curve. I would like to do that for whatever function I can think of. Thank you!
8
votes
2answers
202 views

How to interleave data in a certain way

Here's the deal: I have a table that has the form list = {{A,{a,b,c}},{B,{d,e,f}},{C,{g,h,i,j}}} and so on, where the innermost lists can have an arbitary ...
1
vote
1answer
41 views

2D vector treatment and visualisation

I'm just trying to define a set of vectors, in the Cartesian plane, draw the vectors originating from the origin $O,$ and be able to add vectors and draw the resulting vector. I've started doing ...
1
vote
1answer
80 views

How to animate a graph generated by ListPlot command point by point?

I was wondering if it is possible to animate the following graph. The command used to generate the graph is the following: ...
2
votes
0answers
58 views

WhenEvent behavior changed from v9 to v10 - how to fix the code?

A couple of years ago I asked a question about solving n-body systems with NDSolve and detecting collisions with WhenEvent. I ...
1
vote
1answer
95 views

Using a table as a variable in a function

I have a bunch of arrays and need to extract specific rows and columns of these that obey certain criteria. So for one table I'd do like this ...
1
vote
0answers
95 views

Plot Multibeam bathymetry grid

I don't speak Mathematica very well, but I am sure I could do great things with this programming language! I will delete this question if it is a duplicate, but I will be glad if you could point me ...
0
votes
1answer
75 views

Discrete Fourier Transformation

Assuming I have a function $f(x)$. I can use a numerical Fourier transformation: NFourierTransform[] to find some points of $F(\omega)$. How can I do the same ...
-2
votes
1answer
62 views

How to solve this non-linear equation? [closed]

b=12 a=2.787 solve[b/x-((1-(a*(((b x)/(b+2 x))^(4/3))))^(-2/3))- ((1+(a*(((b x)/(b+2 x))^(4/3))))^(-2/3))==0,x] I gave the above code and the output came ...
1
vote
1answer
47 views

Apply Grad and Mod to Matrix

Let f:=x^3+y*x*z+z^3; Let mat = {{2, 2, 2}, {3, 1, 7}, {1, 6, 3},{4, 5, 1},{0,4,9}}; be a list of points . I want to compute ...
1
vote
1answer
112 views

Import graphml file in mathematica

I am trying import a graphml file I created with NodeXL in mathematica in order to create a network. However when i try to import it I get the error message: "Cannot import data as GraphML format". ...
0
votes
0answers
38 views

Option ItemAspectRatio in GraphicsGrid has weird behaviour in MMA 10.3

Has anybody noticed that the Option ItemAspectRatio in GraphicsGrid is no longer valid? It ...
1
vote
1answer
57 views

Mathematica cannot find intersection of two functions [closed]

Why mathematica cannot solve this extremely easy equation? [![My functions][1]][1] g[x_] := -x + 2 h[x_] := 3 x f[x_] := -x^2 + 4 http: // ...
-3
votes
2answers
125 views

How to create a series using For loop.? [closed]

i want to create a series such as 10^n-1 * 10^n-2 *.......... * 10^2 * 10^1 using for loop ; here is my code. For[n=1, n<18, a=10^n; n++, b=(10^n)*a;]; ...
1
vote
1answer
64 views

Edit header information of a DICOM file and export it again

I have some DICOM files and want to edit a part of the Header and export the DICOM files with this edited header. I know how to Import a DICOM files and extract the Header Information, but how to ...
1
vote
1answer
39 views

Please explain this pattern/Message related issue and help with finding workaround

I attempted to clean up my code and also add messages to functions if they are called with wrong arguments. This introduced some error which I tracked down to the following: ...
5
votes
1answer
161 views

Filter a specific area of an image

I try to obtain the angle of the periodic waves that you can see below. I am using the FourierTransformation to get it: ...
2
votes
1answer
122 views

How to put the result of NDSolve in a function?

I have solved an ODE with NDSolve, and put the result in S: S = NDSolve[{y'[x]==(y[x]^4+y[x]+1)^(1/2),y[0]==0}, y, {x, 0, 100}] But i don't want to plot y[x] ...
2
votes
1answer
273 views

NDSolve with piecewise function gives error “Encountered non-numerical value for a derivative at x == 0.” [duplicate]

I am solving differential equation with piecewise function and i am getting error that NDSolve::ndnum: Encountered non-numerical value for a derivative at x == 0.. ...
3
votes
1answer
224 views

How to plot heatmap function over the unit circle

I have a function $Z(r, \theta)$ that I would like to plot over the unit disk. I could of course plot it as $Z(\sqrt{x^2+y^2}, \arctan(y/x))$, but the best I can do with this is a square plot. I would ...
2
votes
2answers
92 views

How to created visualization dashboard for summary data?

I would like to create the following dashboard: The numbers indicate my desired dimensions for the cells. I would like the cells to contain a regional plot, a trend line, and bar charts. I have ...
2
votes
1answer
79 views

How to do literal replacement to format expression?

I can do a replacement of an expression with some variables to alternate symbols: ...
2
votes
5answers
379 views

Create a Pascal Matrix

I am trying to write a function that can create a Pascal matrix. So far I have ...

15 30 50 per page