0
votes
0answers
310 views

Mathematica 9 link in OriginLab

Hi (I am an absolute newbie), I need to send Mathematica data to the program OriginLab to plot and change the graphs. Does anyone know if it is possible to send data from Mathematica 9 via ...
7
votes
1answer
664 views

How to set a zero offset for the frame origin?

I want to set a zero offset for the frame origin. In other words, the horizontal axis should start at exactly the lower bound, instead of having a small offset. For example, in the figure below, ...
1
vote
2answers
138 views

Creating a Table of Items for GIF creation

I want to create a table as shown below so that the steps from the first item to the second item, and the second item to the third item, etc. can be animated. I am not at liberty to post tested ...
18
votes
2answers
590 views

Blend code for built-in ColorData schemes

Hi I want to get a blend similar to "SunsetColors". To make those slight modifications, I would like to know the precise blend of that color scheme. My try: ...
10
votes
3answers
531 views

How to properly project a Graphics object consisting of line primitives

My problem starts from attempts at depicting overlapping lines of different thickness, i.e. ...
0
votes
0answers
87 views

Implementing a back button (in CDF)

I have a rather large notebook, which contains a lot of hyperlinks to different parts of the notebook. Is it possible to make a back button (maybe as a docked cell button?) so that when a reader ...
2
votes
1answer
104 views

How can I make check boxes that put elements into a list?

Right now I have a blank list that I am putting in Manipulate[]. I want to be able to choose whether 1,2, or 3 are in this list by setting z1,z2, z3 as True or False: ...
0
votes
1answer
171 views

Mathematica .m file can not open in Ubuntu

My operating system is Ubuntu. I add some new .m file to /usr/local/Wolfram/Mathematica/9.0/AddOns/Packages/ and then call for it in Mathematica, but failed with the message Get::noopen: "Cannot open ...
1
vote
1answer
190 views

in search for mathematica function similar to imagesc in matlab

Simple question: Is there any built in function for images that acts similar to imagesc in matlab, i.e. take grayscale image scale it to use full [0,1] range and then use some kind of colorgradient to ...
3
votes
1answer
448 views

Convert String to List of Numbers

I want to create a function that when a string is entered it will turn it into a list of numbers, these numbers are the numerical form of the characters in the string. e.g. a=1, b=2, c=3, d=4 and ...
0
votes
0answers
55 views

Identify columns of a huge matrix just polynomially many rows chosen at random

I am interested in the following problem in combinatorics $\Cap$ Probability. Let $\lambda \in \mathbb{N}$ be a parameter. Consider a matrix of $2^\lambda$ rows and $2^\lambda$ columns. Each column ...
0
votes
1answer
1k views

ContourPlot Legend with colorbar for arbitrary contour values

I have a ContourPlot in which I have specified the contour-values myself as Contours->{0.01, 0.05, 0.1, 0.2, 0.3}. I would like to get the corresponding contour-values to be shown in the color-bar in ...
9
votes
1answer
281 views

Mathematica9: NDSolve slows down after repeated calls

I have noted that in Mathematica 9 my code, which involves a lot of calls to NDSolve, slows down considerably after some time. Apparently, the problem is NDSolve itself and it seems to be related to ...
3
votes
2answers
1k views

Find a best fitting curve for some data with no regular pattern

Suppose some data with no regular pattern is given, so common patterns of functions all fail to fit it. Then how can one find the best fitting curve? I believe there will be some data for which we can ...
0
votes
0answers
138 views

How to define delayed coupon payment for FinancialBond?

When the coupon calculation end date falls on a holiday, it is customary to delay the coupon payment to the next working day. E.g. a bond may have a monthly coupon calculation period of 2013 Jul 18 to ...
10
votes
1answer
212 views

Infix form of PutAppend ( >>> ) does not work with variable

I'm new to Mathematica, so I suspect this question involves either a misunderstanding involving variables or the usage of >>>. On a webMathematica page ...
4
votes
1answer
122 views

Image Tooltip exported to HTML

Graphics@Tooltip[Hyperlink[{Purple, Rectangle[{0, 0}]}, "http://www.wolfram.com"], Graphics[Disk[]]] Is it possible to make image tooltip kept in the html?
3
votes
1answer
80 views

PostProcessing TraditionalForm output to append a vertical bar?

This simple task is giving me trouble. Suppose I'd like to take the output from TraditionalForm[Integrate[x^2,x]] and post-process it to append a vertical bar ...
7
votes
1answer
562 views

How can this type of optical illusion be created in Mathematica?

I see these around the web and would like to make them in Mathematica. Combining them in an array is actually quite mesmerizing!
0
votes
1answer
114 views

How do I use a while-loop to find the gain of a transfer function's limit?

At the moment I can find the limit of my transfer function as follows: (5 4001.6`)/(5 4001.6` + (4 + s) (200 + s)) /. s -> 0 This works as I would expect and ...
2
votes
0answers
248 views

Understanding “IntensityData” coordinates

Update - Playing around a bit, is it true that we need to process the list of "IntensityData" values $r$ as follows: r = Partition[r,k]; r = Transpose@r; And ...
2
votes
1answer
140 views

Hide both input cell and output cell

You can double-click the right gutter of a input cell to hide a corresponding output cell or double-click the gutter of the output cell to hide the input cell. I would like to hide both the input and ...
7
votes
1answer
308 views

Why does Simplify with TimeConstraint return Removed[$$Failure]?

Bug existed in version 7 and is fixed in version 10.0.0 I have a rather ugly Mathematica expression (edit: shown below) that I would like to simplify with a time constraint; simplifying without a ...
14
votes
4answers
861 views

Measure perimeter of black edge in Mathematica

I have a pattern like the one below. How could I measure the total length of the perimeter of the black/white edge? This would give me a measure of spatial frequency. Any tips would be great! Thanks! ...
2
votes
2answers
4k views

Step-by-step definite integration

I am interested in obtaining the intermediate steps for rather straightforward symbolic definite integrations (e.g., from an elementary calculus text). As an example, for $\int_0^1 x\,dx$ I'd like ...
3
votes
2answers
217 views

Export in Manipulate, infinite loop

I want to make export of a plot inside Manipulate, but only once. However, this code runs infinitely and does export infinitely: ...
1
vote
3answers
1k views

Mathematica 8: ContourPlot finding out max and min function values [duplicate]

I have a ContourPlot where I have let Mathematica draw the contours automatically. I would like to extract the zmax and zmin contour values that have been determined internally so that I can pass them ...
1
vote
0answers
85 views

Insert a Quantity Unit literal in TraditionalForm

Is there a keyboard shortcut for creating something like the result of this: Quantity["Kilograms" * ("Meters")^2 / ("Seconds")^2] After copying the result to a ...
3
votes
2answers
398 views

Ploting a 3D vector field using Manipulate, VectorPlot3D and NDSolve

My aim is to plot a vector field of the following system with a few trajectories: $$r'(t)=i-l.r(t)-\text{ux}. r(t). x(t)-\text{uy}. r(t). y(t) \\ x'(t)=\text{ex}. \text{ux}. r(t). x(t)-\text{mx}. ...
18
votes
1answer
396 views

How can I make a notebook with two column layout?

How can I make a notebook with two column layout? Is it possible? I saw something tools could do such thing? Author Tools?
1
vote
2answers
135 views

How can I make notebook cell's background become transparent?

How can I make notebook cell's background become transparent? And can be saved as html with the translucent or transparent effect? One of the use is in HTML files, the background of cell hides the ...
2
votes
4answers
219 views

Find time since last 0 in list

When I have a list of data (measured per day), is it possible to define a function that gives the nr of days since the data has been 0? I tried working with...
2
votes
1answer
323 views

RSquared Mathematica Excel incoherence

I've done a NonLinearRegression with this data ...
1
vote
1answer
189 views

RevolutionPlot3D: revolving around a line NOT an axis [duplicate]

Is it possible to revolve a function around a line instead of an axis? For instance I would like to revolve the quadratic function: f[x_]:=-0.45(x-1.5)^2 ...
7
votes
2answers
242 views

Complement on pre-sorted lists

Is there any way to instruct Complement to skip the sorting part? If the answer is no (likely), the next question would be: how can I remove from a sorted list ...
1
vote
1answer
151 views

Understanding the computation of IntensityCentroid?

If I have an image img, and I ask ComponentMeasurements to return "IntensityValues" for the ...
4
votes
0answers
334 views

NDSolve: ProcessEquations and Reinitialize with Piecewise functions

I am having trouble with using NDSolve`Reinitialize when the system consists of a pieceise function. If we define the ODE system ...
28
votes
2answers
1k views

when is f@g not the same as f[g]?

I have always thought that f@g will give the same result as f[g] in all cases, and it is just a matter of style which one to use ...
2
votes
1answer
440 views

Why cant I open CDF's in the Chrome browser on Linux?

I have google chrome on ubuntu 13.04. Every time I try to run a CDF on wolframs website, I'm required to download the CDF first, and then open it in my computer, but when I was using windows it was ...
0
votes
1answer
176 views
3
votes
1answer
415 views

How can I save the current evaluation state of a notebook and start from it later?

I currently have a nested Table command running (in Mathematica 9), with two progress bars to track the variables. I have to shut down or hibernate the computer in ...
1
vote
2answers
703 views

Manipulating Frame labels when legends are also there

I am plotting a few curves inside a frame with labels on three of its sides; left, right and bottom. I want legends to be places at the top. The problem which I am facing is that the top label ...
3
votes
1answer
147 views

Key Mapping in Command Line Mode

I would like to map Ctrl-U to "kill line" when using Mathematica 9.0 in command line mode (i.e. not within the front end, but when called from a Unix command line by "math"). I am aware that (on a ...
14
votes
4answers
551 views

“Unflattening” a list

Imagine we have a list with some hierarchical structure: list = {{{2,3},{2,4}},{{{3,4}}},{{5,6},{7,8}}}; Which we then flatten to some level in order to process ...
3
votes
3answers
313 views

ArrayPlot and non-integer PlotRange

There seems to weird bug regarding non-integer PlotRange in ArrayPlot. For example... ...
1
vote
1answer
813 views

3D Phase Portrait with direction fields and sample solution curves [duplicate]

I have seen NDSolve and ParamtericPlot3D used for things like the Lorenz Attractor, but was wondering if there is a way to draw a 3D phase portrait for a system. Something akin to this: ...
1
vote
2answers
55 views

Get the unevaluated expression from a numbered cell

If a cell exists as below: In[1] := (xyPoints = {{1,2},{2,5},{3,10}}; ListLinePlot[xyPoints]) Is it possible to get at the expression rather than the plot shown ...
0
votes
1answer
212 views

A problem on generating convex hull

For example, I typed the following: ...
5
votes
1answer
562 views

Parallelize plotting

I'm using Mathematica to make a few 3d plots. For the sake of generality, let's say they are unrelated to each other (so I can't imagine making a table out of them). However, the machine I'm using has ...
6
votes
3answers
983 views

Combining Cos[ ] terms

A function that is the sum of two Cosine terms of the same frequency x[t_] := a1 Cos[w0 t + b1] + a2 Cos[w0 t + b2]; can be simplified to a single ...

15 30 50 per page