# All Questions

76 views

### Social Media Data, specifying the time interval

I am facing a problem concerning the SocialMediaData function built in Mathematica. I am trying to investigate the ...
144 views

### Help using NIntegrate

I need some help with NIntegrate. I pasted the code that I wrote below; I know that up to "de" is correct. What I would like to do is NIntegrate de w.r.t phi{0,0.1} and curlE{-10,10}. The final ...
95 views

### Manipulate which creates and deletes Manipulators dynamically

I want to plot a function in a Manipulate in which the number of terms varies and a Manipulator for the coefficient of each term ...
237 views

### Can Mathematica solve $x^{b^2} + ax^b -1 = 0$ for $x$ with $a>0$, $b>1$?

I have a problem that I can't seem to solve neither analytically nor with Mathematica. Namely, I have the expression $$x^{b^2} + ax^b - 1= 0,$$ which I want to solve for $x$ with $a>0$, $b>1$. ...
245 views

### Using Mouseover to change the appearance of a button without writing the button specification twice

When I code in Mathematica, I often find myself having to repeat large chunks of code for a function to work. The latest example of this is a color changing button that prints when clicked, code shown ...
131 views

88 views

### Problems with For statement

I'm trying to iterate some expression through for loop: ...
255 views

### A fast way to compare interval

I have a list of intervall. Some of these intervals are disjoint, some are overlapped and some are included in others. To leave no ambiguity about my explanation, you can see the following examples: ...
388 views

### Factor vector out of a matrix

I am wondering how to factor a[1],a[2],...,a[4] out of sim so that I can write sim as the ...
278 views

### How can I make sure that 3D plots have the exact same orientation and viewpoint?

Edit - I made the example data much smaller, so it's not so much to download. I am trying to make animations of electronic orbitals, using functions like the ones listed here. In order to make an ...
509 views

### How to see source code of a demonstration in notebook [duplicate]

I downloaded this demonstration The source code can be previewed here However, when I download the NB file, I cannot get access to this said code. All I can see is the output. I'm obviously missing ...
244 views

### Mapping a function over n levels

I want to map a function over a matrix of rank n, for example: ...
63 views

### Hashing by Equals instead of SameQ

I have some numerical code involving complex numbers representing points on a plane. Some of these are equal but not identical, ie ...
394 views

### Transforming a huge rectangular table to Sparse Array

I am interested in the most efficient way to transform a huge rectangular array to a sparse array structure. Consider a numeric rectangular table that is rather sparse, with zero positions being set ...
517 views

### Plot3D Not Showing plot

I have a function that I'm trying to visualize and for some reason the plot only shows a small snippet of the graph of the function. The function, d, and relevant ...
212 views

### Exp is slower for some number ranges

I get a hit on performance with the Exp function depending on the range of my inputs. for example, with: ...
140 views

### What is the syntax to conditionally suppress plotting in version 9?

Bug introduced in 9.0 and fixed in 9.0.1 In Mathematica 7 it is very easy to conditionally suppress plotting of individual lines using If: ...
159 views

### Set plot axes to be positive in both directions

How can I set the axes of a plot to be positive in both directions, along the lines of this image? I've looked through some questions on how to change the axis direction (here, here and here) but ...
414 views

### running a notebook with a batch file

I am using Windows (7 if needed). I am trying to learn how to write a batch file that EXECUTES a notebook. This is the batch ...
127 views

### How to drop the identical rows and columns of a matrix?

I'm currently trying to find a way to eliminate from a square matrix of generic dimension the duplicate (up to sign) rows and columns, obtaining a smaller dimensional matrix. I searched around here ...
960 views

### Plot the minimum of a list of functions

This is my first question on any stack-exchange site and I'm also very new to using Mathematica software so please excuse/correct me if I mess up. I would like to take a list of functions of a single ...
820 views

### Testing for continuity over a given domain

Is there any way to use Mathematica to test whether a function is continuous over a given domain?
241 views

### Taylor expansion of function of vectors—simplifying the output

I've got a real-valued function of several vectors $f(u,v,w)$ formed by taking scalar products of linear combinations of the vectors, I want to Taylor expand around small $v$ by writing f(u,\delta ...
47 views

### Inserting a closed section

Is there a way to insert a closed section? I know in .m files if you do (* ::Section::Closed:: *) and open the .m file using system editor, a closed section will be ...
326 views

### PlotMarkers with black border

I notice that when I paste my graphs in word sometimes they are not very well readable. A colleague of mine send me a graph made with Sigmaplot. The first figure is made with Mathematica, the second ...
299 views

### Treat strings as variables?

I have a list of strings, {"x1", "x2", "x3", "x4"} And a list of linear equations: ...
202 views

I have the following code for drawing two isotherms for a Carnot engine: ...
310 views

### How can I combine my 3D graphics and animate them?

I'm just a beginner but can someone tell me how I can take my image of an Elf and put it together with a 3d background and I'm trying to animate it snowing but I wanna use a "play" button. Trying to ...
211 views

### Make further objects blurry?

I have the following function: ...
66 views

### Getting data through a serial port [duplicate]

I need to receive data from a serial port and save it to a list so I can use it later. Since the input will depend on human interaction, My program must keep running and saving as long as data is ...
101 views

### Defer parts of the expression

Is there a way to Defer only parts of the expression? For example, I have a=1; and then I want the expression to be shown as...
107 views

### How do you add options to a function that is being mapped?

Simple example: Normally: ListPlot[list, Joined->True] If I want to map ListPlot how do I keep the ...
315 views

### From a list of (x,y) pairs, generate a new list of (x,ymean) pairs, where ymean is the average of all y's with the same x in the original list [duplicate]

This seems like the sort of thing where Mathematica can give a very simple solution. I have a list of points {x,y}: ...
286 views

### Why setting PlotPoints make my 3d contour plot broken?

I'm trying to make a iso surface plot from some data using ContourPlot3d. My data is a 3 dimension data with form like {{x,y,f[x,y]},...}. I first make this data ...
39 views

### Adding columns of data to a matrix [duplicate]

I create a matrix of values using Table. Here's my code: ...
187 views

### Why does StreamColorFunctionScaling refuse to turn off?

Consider this simple streamline plot: StreamPlot[{-y/10, x/10}, {x, -1, 1}, {y, -1, 1}, StreamColorFunction -> Function[{x, y, u, v}, Hue[v]]] The ...
1k views

### Determine frequency of oscillations

I am wondering how I could determine the frequency of oscillations of a differential model equation? How could I find the frequency from this example given in Mathematica Documentation: ...