# All Questions

208 views

### Combine multiple swatch legends

How can I combine multiple SwatchLegends? As a minimal example: ...
39 views

### NSolve of Series[Log[..]] doesn't give a result [on hold]

I have the following equation which cannot be solved by Mathematica numerically NSolve[Series[Log[vS + n], {vS, 0, 3}] == aa, vS] My output is ...
22 views

### How can I export to HDF5 with a specific Datatype (“DataFormat”)

I am trying to export some largish integer arrays to HDF5 and know that every entry in them would fit into an unsigned 8 bit integer array. As the default "DataFormat" for export that Mathematica is ...
30 views

389 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). ...
46 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 ...
73 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: ...
30 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 ...
37 views

### Product of two list of different size [on hold]

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 ...
68 views

### Defining arbitary Derivatives of functions

If I have two functions like these f[a_,b_] and g[a_,b_]. Lets say ...
75 views

### Displaying tensors

I want to display the values of a table with superscirpts and subscripts in a list as bellow. ...
54 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 ...
42 views

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

I currently have a form with a picture label, ...
74 views

### How to colorize a 3D image [on hold]

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 ...
149 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 ...
40 views

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

### Select Only Positive Values and Prepend a Title

I have the following list: ...
60 views

### Need help in writing loop to assign value and calculate the called function [on hold]

First of all sorry if my question is very simple as I am beginner in Mathematica. I want to add a loop at the beginning of the code to assign different values for ...
51 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: ...
46 views

### Mapping an arrow to a 3D Plot [on hold]

Consider I have a 3DPlot of a curved area like Plot3D[-x^2 - y^2, {x, -3, 3}, {y, -3, 3}] I now want to do the following: given two starting points ...
16 views

### Getting message “The kernel is not responding to a dynamic evaluation” [on hold]

Every time I want to make an animation like this: Animate[Plot[Sin[t + a], {t, 0, 10}], {a, 0, 10}] Mathematica loads the animation for one second an then gets ...
53 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, ...
68 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 ...
28 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, ...
59 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 ...
52 views

### Generate a new list

Suppose we have the following sample data ...
54 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!
53 views

### Logarithm of complex expression [closed]

For my project, I'm supposed to plot $-\ln[\text{a function}]$ versus time (real and imaginary parts). This function has many terms (around 50 or so) and all have this form $(a+bi)\exp[(c+di)t]$. When ...
54 views

### My group and I are very lost, finding the zeros of the folowing functions [closed]

We have to support our answers with a plot. 1a.) a z(t)+b t = c 1b.) -1.8y + 7.8x = 13.7 1c.) 3z - 4 i t = -8 1d.) 5x^2-11/3x-4=0 1e.) 4.95x^2-3.72x-4.08=0 1f.) 5x^2-11/3x+4=0 Thanks guys!
191 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 ...
30 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 ...
71 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: ...
50 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 ...
85 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 ...
77 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 ...
35 views

### Read raw data from ipad accelerometer and gyro in real time [closed]

I need some strategy to have real-time access to raw data of IPAD (or Iphone) accelerometer and gyro. Any hint to start?
13 views

### check the equivalent [duplicate]

Let f:=x^3+xyz+z^3; Let mat={{2,2,2}, {3, 1, 7}, {1, 6, 3}, {4, 5, 1}, {0,4, 9}}; I want to check at which point of m that the first derivate at x = the first derivate at y = the first derivate at z ...
48 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 ...