# All Questions

117 views

### X3D Export - adding a title

Is there a way to add a title to an X3D (3D) plot that is exported using Export[]? I didn't have much success with exporting a ...
114 views

### Using Differences on data: trouble with floats and doubles

Consider the following data set (after I have run FullForm), which is imported from a file (stored typically as 10.040): ...
337 views

### Creating word histograms from lists of strings

Consider the following: ...
610 views

### Mathematica usage (success stories) for financial back-ends

I've been working for about 5 years in Java, developing financial back-offices (web-services, business logic, report generation etc.). I think Mathematica is very suitable for such calculations and ...
273 views

### How can I style text like in the documentation?

I'm writing an article, and I really like this style that you get when you type ?AnyFunction. Is it possible to achieve this?
621 views

### How to properly plot a response of a transfer function in Mathematica?

I'm trying to display the output response of a transfer function in Mathematica with and without a compensator. The problem is very strange: while the transfer function compensate is showing well, the ...
372 views

### Why does Plot3D omit parts of the surface at kinks?

When doing Plot3D[Max[p^2-q^2,0],{p,0,1},{q,-1,1},PlotStyle->White] the result looks like this (with Mathematica 8.0.0.0): As you can easily see, at the ...
464 views

### print the name of the variable in a list without evaluation

a := az + 1 b := bz + 5 list := {a, b} I'd like mathematica to print a = az + 1 b = bz + 5 so basically it needs to first ...
412 views

### Interlacing a single number into a long list

This seems like it should be a simple question, but I am running into some difficulty in doing this with Mathematica. Right now, I have a list like this: ...
300 views

### Visualizing the output of a Voronoi diagram computation

I need to plot a graph (to be specific: Fortune Algorithm output) with given vertex coordinates and a few unconnected vertices. I am thinking of using Mathematica for that. ...
3k views

### interpolation of 3D data

I have a 3D surface given in data-points of the form ${x,y,z}$. What is the easiest way to get the interpolated value $z=f(X,Y)$ for given coordinates ${X,Y}$ (which are of course not in the data ...
601 views

### Improved interpolation of mostly-structured 3d data

This question arose in response to a comment by Leonid to my answer for this question. He noted that for unstructured grids, Interpolation can only use ...
141 views

### GridBox/packed array behaviour

I have never used low-level formating functions, so this problem might have a simple solution. I'm currently pulling my hair out trying to solve it, however. Consider the following example: ...
864 views

### Import DCD (CHARMM/NAMD binary trajectory) file

How can one import the coordinates stored in a binary CHARMM/NAMD DCD file? This is the structure of the file: ...
163 views

### Width-dependent MatrixForm

When writing fractions, Mathematica has a quite intelligent behaviour: If the fraction gets too long to fit on the width of the notebook, it is automatically replaced by ...
363 views

### How can I model composite 3D structures?

I know that Mathematica isn't built to model 3D, but most of my models are equation-defined so here's my question: is it somehow possible to combine ad-hoc 3D objects as well as ...
710 views

### Non-commutative symbolic linear algebra

I am fairly new to Mathematica but I thought I would be a helpful tool to carry out a few simple linear algebra calculations. It seems like an easy task but I cannot figure out how to do it. For ...
333 views

### Dealing with nested options

OptionValue allows for recent versions of Mathematica (I think as from 7) to easily access optional parameters if they are explicitely given to a function or their default values otherwise. For big ...
888 views

### Bordermatrix from LaTeX

How would I create an output similar to the result produced by this LaTeX code: ...
315 views

### Exporting a 3D plot into a 3D viewing format and axis scaling

I've been trying to export a Plot3D into an X3D (JVX, VRML) file using the Mathematica's Export function. The problem is that when the PlotRange is large compared to the other two dimensions the ...
2k views

### Minimizing a function of many coordinates

I'm trying to obtain a series of points on the unit sphere with a somewhat homogeneous distribution, by minimizing a function depending on distances (I took $\exp(-d)$). My points are represented by ...
3k views

### How to make a 3D globe?

There are many ways to create a 3D Earth that is rotatable (see here, here, related here), but most of them have some drawbacks. These issues mainly stem from either ...
375 views

### Unsupervised Machine Learning Algorithm for Autonomous Image Processing and Tracking

I am trying to prototype a Mathematica application that will enable Autonomous Intruder & Anomalous Event Detection, Tracking and Alarm to web users those who want to autonomously and ...
333 views

### How to format numbers with at least one figure after the decimal point

I'm searching for a way to get Reals formatted with at least one figure after the decimal point. So e.g. 3. should be printed as 3.0 and ...
471 views

### Is there a function to calculate studentized range?

Is there a built-in function for studentized range or do I have to build it myself? Is there a test of normality for the studentized range?
421 views

### Reproducing nested loops using Map?

I keep producing bits of code like the following: ...
418 views

### Labelling ArrayPlot Charts

I have been using ArrayPlot to show off some information. Currently, my datasets are like so: ...
180 views

### DistributeDefinitions doesn't work as expected when used for table iterator bounds?

I am new to parallelization in Mathematica, so this question may reflect some elementary confusion. I am attempting to parallelize a rather complicated module which, as part of its internal ...
193 views

### Rounding problems inside InputField

Consider the following InputField InputField[Dynamic[h2, If[# === Null, h2 = h2, h2 = Round[#, 0.001]] &], Number] The ...
144 views

### How to set different labelstyles for controls in manipulate?

Background: Manipulate[ {jj, kk}, {{jj, 2, "Select j"}, 1, 11}, {{kk, 2, "Select k"}, 1, 11}, LabelStyle -> {Bold, Medium} ] In the example above ...
171 views

### Generating date ranges

How can I, in one line, generate all the dates with a constant day difference from one date to another? For example, if I'm interested in dates in the interval staring from 24.4.2012 till 2015 and a ...
3k views

### Is there a simple way to plot complex numbers satisfying a given criteria

I think this should be straightforward, but I cannot seem to find a good source on how to do it after searching around, so I'm trying to sketch sets of complex numbers that meet a given for criteria. ...
117 views

### How to set PageWidth when using PutAppend to append expressions to a file?

Do[ PutAppend[Table[i, {RandomInteger[100]}], "./file.m"], {i, 100} ] I'd like each inner list to always appear on the same line, but not automatically ...
222 views

### Assignment rule to distribute matrix-multiplication over custom notation

I'm trying to write some code to do basic algebraic manipulations in BraKet notation. Thus far I have a function KetToVec which will convert any expression of the form a1 Ket[s1]+ b Ket[s2] +... to a ...
574 views

### Mathematica output format for big numbers

I need to write output of a Mathematica expression (a list of equations) in a file. I use ...
347 views

### Developing domain specific languages and computational knowledge engines using Mathematica

In one of Leonid Shifrin's excellent summaries, he mentioned that MMA capabilities include developing Domain Specific Languages (DSL). I'd like to develop a Health care IT application that can ...
347 views

### Mathematica as a report generator

I would like to use Mathematica as a kind of report generator. I'm working in a Mathematica notebook and I want to handle Mathematica like this: 1) I want to define one cell as a text cell. In this ...
102 views

### Safely generating multiple controls from a list of variables

Suppose I need to create sliders associated with variables from a given list: ...
407 views

### Is there a faster way to create a matrix of indices from ragged data?

I have data that is given as a list of ordered pairs mixed with scalars. The pairs can contain infinite bounds. My goal is to convert the data into an index used in future computations. ...
299 views

### How do I define the “Coupon” within the function FinancialBond with a time-varying coupon

Is it possible using FinancialBond function to calculate the yield of a bond paying a gradual coupon ? An example : A bond with maturity of 7 years pays ...
348 views

### How to solve a problem in relative motion?

I have a project due tomorrow that I have been struggling with for a month. I am utterly stumped, any help would be appreciated. The problem is: There is a ferris wheel, 30m in radius, set 80m ...
758 views

### Save and call matrices with large output in Mathematica [duplicate]

If we have the large matrix A=RandomReal[{-10, 10}, {1000, 1000}]; and I need it for further calculation, how can I save it on hard disk and then call for ...
115 views

### Stopping Agglomerative clustering under a condition in Mathematica

How do I instruct Agglomerative clustering to stop/NOT merging two particular clusters if the distance between the two clusters is larger than a threshold value? I know that we can implement a custom ...
174 views

### How to use ForAll in Reduce

I was wondering: how does one use the ForAll function in Reduce? In particular, I am looking for the set \$\{w\in \mathbb{R}^2 | ...
215 views

### ReplaceAll inside an Iterator

I'd like to apply a set of rules to an expression defining the iterators of the table, like this: ...
129 views

### Finding minimal region with padding and linear map to circle

Suppose I have n ordered points. I would like to find a simple region that contains all the points and is close to the smallest region that contains the points except it is smooth and has some ...
1k views

### Open Excel file with Mathematica

I would like to open an Excel file and manipulate it as a COM object. While I'm able to open an instance of excel with ...
573 views

### Command-line execution of Mathematica scripts/notebooks very slow

I'm new to Mathematica and am trying to adapt a pre-existing notebook, designed for manual evaluation of individual simulation outputs, to batch process the outputs of multiple simulations. Currently, ...