6
votes
3answers
411 views

Non-linear scaled X axis in DateListPlot

I have a lot of plots like this in Mathematica: And I would like to transform it in something like that: Where the information between 0 and 7 hours and 18 and 00 hour is "compressed" in the ...
6
votes
1answer
393 views

Problem printing what appears in my notebook

I have created a dashboard that looks fine on my screen and fits onto my screen at 100% magnification on Mathematica. When I try printing it, no matter what printing environment I use, I can not get ...
2
votes
1answer
167 views

What Cell Option Controls Group Indentation?

I am working on a stylesheet for a handout I am making and I want to make my own "definition" box format. So I use the "Format"->"Edit Stylesheet" menu option and get the stylesheet inspector. I then ...
11
votes
3answers
579 views

Using PlotLegends with a numeric PointSize

Using PlotLegends with a PlotStyle containing (for instance) PointSize[0.02] creates a ...
2
votes
1answer
201 views

How to override `?NumericQ`

I have a function myFunc which I is to be displayed cleanly if arguments are symbolic, but which can also be numerically evaluated. I do this by defining a ...
2
votes
1answer
381 views

Obsolete Signal Processing functions

I need some tools to detect the fundamental frequency and pitch of a sound. I Googled for "pitch detect" and found some .nb files that do these tasks, but all the files are in Mathematica 3.0 format. ...
-3
votes
2answers
805 views

Plotting a 3D sphere i.e. how to vizualise the spanned volume $\int_0^{2\pi}\int_0^{\pi} d\theta d\phi$?

I am trying to help this guy here to vizualise the integration volume. How can I plot the different integrals ie a ball and the ball adjusted by a trigonometric function? Integrals needing visual ...
4
votes
1answer
152 views

RecurrenceTable with vector

Mathematica can do a RecurrenceTable with a vector, here is a simple example: RecurrenceTable[{x[n + 1] == 2* x[n], x[0] == {1, 2, 3}}, x, {n, 3}] with output ...
8
votes
3answers
360 views

Map over list of functions

I would like to convert a list of $n$ complex equations to a list of $2n$ real ones. At the moment I am doing it like this: ...
1
vote
2answers
694 views

Plotting a graph with conditions

I am a newbie in Mathematica and is currently using Mathematica v9.0. I would like to consult if anyone knows how can I plot a given functions with conditions as shown below on how they look like. ...
1
vote
3answers
616 views

Ignore missing data while doing a Mean

I want to compute the mean of a list while ignoring missing values, but I don't find a lot of information on how to deal with Missing data in Mathematica. I have a list like : ...
1
vote
1answer
282 views

Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i?

Edit up top: The accepted answer works splendidly except I had to add //ToExpression to the end of the definition of ns given by ...
5
votes
1answer
112 views

How to set MouseAppearance to void?

I need to get an output graphics which does not show mouse cursor over itself. I didn't find a corresponding value in MouseAppearance documentation and ended up ...
6
votes
1answer
930 views

How to convert from and to UTM coordinates in Mathematica?

How to use the UTM coordinate system (northing, easting) in Mathematica using the built-in functions (GeoPositionENU, ...
11
votes
2answers
791 views

Maximum size of TIF files in Mathematica

I have a question concerning the maximum size of TIFF files Mathematica can handle. According to the TIFF 6.0 specification -revision 6.0 (see: ...
0
votes
0answers
153 views

Using Control Objects with TabView [duplicate]

I have a number of different tabs on my 'dashboard'. Each tab has a few different Controls (drop down boxes) that the user makes selections with. These selections determine what is displayed on the ...
9
votes
1answer
213 views

Inheriting Stylesheets when using CreateDocument

I build a lot of presentations and custom notebooks with very different stylesheets, and use Button and CreateDocument quite ...
2
votes
2answers
191 views

Modify a sub-part of a sub-list only

I have this list: a = {{{0, 0}, {1, 7}, {2, 0}, {3, 2}, {4, 7}}, {{0, 0}, {1, 0}, {2, 1}, {3, 2}, {4, 7}}} and I'd like to transform it to this: ...
2
votes
1answer
126 views

Import a file only if it contains a certain pattern

Let's say I have three files containing: File 1: x y z 1 4 6 File 2: x y z 2 5 9 File 3: x y z 5 4 8 My goal is to import the data from a file only if in ...
5
votes
3answers
726 views

Define an 'inner product' with AngleBracket

I want to define my own little 'Inner Product' function satisfying properties of linearity and commutativity, and I'd like to use the "$\langle$" and "$\rangle$" symbols to output my results. For ...
10
votes
4answers
313 views

Order items by closest to the previous

I have a list of 2D points (a table, imagine the data of a parametric plot shuffled) I would like to join the points with a line that starts from one of them and always goes to the closest one. I ...
3
votes
2answers
220 views

Adding a coordinate label to individual squares in ArrayPlot[…]

Can I write text, or add a specific text label to individual squares of an ArrayPlot[...] graphic? Specifically, I would like to assign an two-dimensional integer coordinate label to each square.
1
vote
1answer
345 views

How to find this convolution?

How can I use Mathematica to find the convolution $f*f$ for ...
1
vote
1answer
129 views

Is there an easy way to specify an arbitrary two-dimensional Polyomino tiling in Mathematica 8.0?

Is there an easy way to generate an arbitrary two-dimensional Polyomino tiling: http://en.wikipedia.org/wiki/Polyomino? Specifically, I would like to generate an array of integer coordinates, for ...
-3
votes
2answers
166 views

How to make plots scaling consistent when running a series of simulations?

In my function it returns a plot of my data, say example, using ListLinePlot, and this is the size I obtain: but when running a series of simulations inside a Table: ...
4
votes
1answer
1k views

How to correctly use DSolve when the force is an impulse (dirac delta) and initial conditions are not zero

DSolve (and NDSolve) return different and unexpected solution to differential equation when the input is an impulse. This is ...
0
votes
2answers
161 views

Automating the “Get Indices” right click function

Is there a way to do this? What I am trying to do is allow a user to take a lineout averaged over the rows of a user defined ROI (Region of Interest) of an image. I have the bit of code that allows ...
0
votes
1answer
564 views

How do I plot a 3D vector field using a data file with three x y z columns?

I have a data file that is the solution of the laplace equation on a rectangular area, which has three columns: x, y and z with their numerical values. How do I plot this data into a vector field with ...
6
votes
5answers
614 views

Elementwise join

I have two tensors of arbitrary but equal rank n (and equal dimensions): A and B, and I want to get a third tensor of rank n + ...
13
votes
2answers
600 views

Dashboard TV with CDF Player

I'm experimentally trying to use CDF Player to create an Dashboard TV here in the company (like in the airport, see image below). I would like to configure the CDF file so It could be displayed in ...
6
votes
1answer
847 views

Coding mistake? [closed]

I have just started using Mathematica with v9.0. I am trying to follow a computation from a book on Fourier series with the function $f(x)=x$ on the interval $-\pi < x < \pi$. Here is the code ...
6
votes
1answer
146 views

Implementing Remainder Tree

I want to implement Remainder Tree based on this. With the answers on SE I've come up with: ...
14
votes
9answers
493 views

Distributing elements across a list of lists

I have two lists: u = {{1, 3}, {2, 6}, {3, 9}} v = {0, 4} and I want to obtain this list from them: ...
0
votes
0answers
1k views

How can I plot a function and its partial sums? [duplicate]

Possible Duplicate: How to Plot an Infinite Series Coding mistake? I have Mathematica v9.0 and I am a newbie to Mathematica. I am trying to plot a function $f(x)=x$ over the interval ...
8
votes
4answers
513 views

Efficient code for the Ten True Sentences puzzle

I am trying to solve Ten True Sentences Puzzle. Take a look at the following sentences: The number of times the digit 0 appears in this puzzle is _. The number of times the digit 1 ...
0
votes
2answers
512 views

Why is Mathematica treating my text as input?

I have typed in some text input by using Alt-7 to convert everything into text, but why is text still evaluated? Or is there better way to make comments other than (* text here *), because in my text ...
6
votes
1answer
707 views

FindRoot options

I found an example of FindRoot usage that I couldn't find documented. It looks like: FindRoot[f[x] == 0.4, {x, 0, 1, 0, 1}] ...
3
votes
2answers
111 views

Nested List Product

I want to apply Times on the elements of a list such that: ...
1
vote
1answer
211 views

How do I expand a sum (again)? [duplicate]

Possible Duplicate: How do I expand a sum? How do I expand an equation in the given form: $\sum _{i=1}^n -2 x_i \left(-a x_i-b+y_i\right)=0$ into this form: $-\sum _{i=1}^n x_i y_i +a ...
1
vote
1answer
417 views

Converting Excel serial dates with NETLink

Excel serial dates are not straightforward to convert since they include non-existent dates, e.g. {DatePlus[{1990, 1, 0}, 59], DatePlus[{1990, 1, 0}, 60]} ...
12
votes
3answers
462 views

Visualizing directories

How do I plot the content of a directory and all its subdirectories into infinity using TreeForm? I've tried using a mix of ...
1
vote
1answer
255 views

Faster GCD Implementation

Is there any chance to write a faster GCD than the built-in one in Mathematica? @Mr.Wizard has written one in this question (although it's not for this purpose) which is 6 times slower on a 100k ...
14
votes
2answers
313 views

Why doesn't Mathematica use uniform criteria for validating Options?

Plot[Sin[x], {x, 0, 1}, pp -> 0] Gives as expected: Plot::optx: Unknown option pp in Plot[Sin[x],{x,0,1},pp->0]. >> However: ...
23
votes
1answer
799 views

Do you really want to quit the kernel? Yes!

When I have entered some bad code and hit shift+enter before thinking about the perils of finite RAM my computer obviously starts suffering. I have found two options that usually lets me recover ...
3
votes
1answer
438 views

How can I get better tick spacing for multiple ListLogPlots?

I am using Show with PlotRange -> All to overplot multiple ListLogLogPlot. The resulting ...
0
votes
3answers
483 views

How can I fill in a matrix at every iteration of a Do loop?

I have a matrix whose dimensions are 26x26x3. For my assignment I have written a program which is using a Do loop (maxx=maxy=10,maxz=2): ...
3
votes
3answers
325 views

Correct way to populate a DiagonalMatrix?

I would like to create a series of correlation matrices that starts with : sensMat[[1]] = DiagonalMatrix[ { 1,1,1,1,1 } ]) // MatrixForm and iterates in 0.1 ...
2
votes
0answers
469 views

Is it possible to extract the rules of cellular automata as Mathematica code?

I would like to run cellular automata in the vertical direction if row index is greater than column index and in the horizontal direction if row index is less than column index, in a square array ...
8
votes
2answers
346 views

How do I get the equivalent of the $\LaTeX$ \tag{} in Mathematica?

How do I get the equivalent of the $\LaTeX$ \tag{} in Mathematica? $a+b=x \tag{1}$ I'm not necessarily asking how to use the $\LaTeX$ \tag{} itself in ...
9
votes
1answer
295 views

error when defining a compiled function with ReplacePart

I always have difficulty in writing a non-trivial compiled function. I'm using Mathematica 9. Please see the following code ...

15 30 50 per page