13
votes
3answers
997 views

How to evaluate the 0/0 type limit in Mathematica?

When I use Limit to evaluate the $k \to 0$ limit of ((k + 2) (α^2 - Sqrt[α^4 + k]) + k)/(α^2 - Sqrt[α^4 + k] + 2 k) If ...
13
votes
2answers
547 views

Saving a notebook without output lines

Is it possible to change the way Mathematica saves so that Out[] lines are never included? I have a .nb file that processes a ...
13
votes
2answers
961 views

Symmetrical image transformation for a kaleidoscope-type image

I've been trying to write a little kaleidoscope-type manipulate, using images rather than graphics, and using ImageTransformation as a way in. However, I'm starting ...
13
votes
4answers
871 views

Is there a way to Collect[] for more than one symbol?

Oftentimes you find yourself looking for polynomials in multiple variables. Consider the following expression: a(x - y)^3 + b(x - y) + c(x - y) + d as you can ...
12
votes
2answers
427 views

How to get grid lines at all (log) tick marks in Version 10?

In Version 7 using GridLines -> Automatic (or All) would put a grid line at every log-spaced tick mark: ...
12
votes
3answers
777 views

How can I type-check the arguments of a Mathematica function?

(For educational purposes) I defined the following functions: Translation (in $\mathbb{R}^2$): trM[vec_] := {{1, 0, vec[[1]]}, {0, 1, vec[[2]]}, {0, 0, 1}} ...
12
votes
3answers
214 views

Selective evaluation of blocks of code in a Manipulate

Is it possible to attach certain pieces of code to certain controls in a Manipulate? For example, consider the following Manipulate ...
12
votes
1answer
267 views

Use TextRecognize to grab timestamps from a video frame

I have microscope videos that have a timestamp overlay to them, and it would be great if I could extract this for each frame to add to my metadata. TextRecognize ...
12
votes
1answer
445 views

Get the current iteration count

I would like to be able to get the current iteration count, the one that if exceeds $IterationLimit makes the evaluation stop. After not finding a magical variable ...
12
votes
3answers
2k views

How to place legend labels for Histogram and ListLinePlots correctly?

I would like to place AxesLabels: For x axis at center of the Histogram and LineListPLots. For y axis rotated 90 degree anti clockwise. I don't see any options for it? ...
12
votes
4answers
507 views

Calculate proportion of values for dates

At work, we were discussing when is it the best time to change to winter tires for bikes and/or cars. Using WeatherData[] and ...
12
votes
3answers
2k views

Manipulating the axis on a ListLinePlot

I am trying to create a plot using ListLinePlot in which the x-axis is represented in a logarithmic scale, and is reversed (so larger values are on the right side). ...
12
votes
3answers
2k views

How to do System dynamics simulations / diagrams in Mathematica?

System dynamics is an approach to understanding the behaviour of complex systems over time. It deals with internal feedback loops and time delays that affect the behaviour of the entire system. What ...
12
votes
3answers
1k views

How to set tick label precision [duplicate]

When I make a plot like Plot[Exp[x], {x, 1 - 10^-9, 1}] The resulting plot looks like . Notice all the ticks on the x-axis are all labeled 1. Is there any ...
12
votes
1answer
1k views

How to install and configure Intel C++ Compiler for Mathematica correctly?

I wish to try the trial version of the latest Intel C++ Compiler for Windows with Mathematica. I have downloaded the current version of Intel® C++ Composer XE 2011 for Windows and installed only the ...
12
votes
1answer
1k views

How to export transparent raster plots?

Is there an easy way to get transparent plots that work with Save Graphic As using a compatible file format such as GIF or PNG? I tried ...
12
votes
2answers
363 views

Compile for deployment

Is there any way (other than the manual one) to grab all the functions a notebook uses from the different user-defined packages and putting everything into one file to deploy the code for e.g. CDF? I ...
12
votes
3answers
805 views

Function does not compile with Greater in it

I have to speed up a matrix-calculation and would like to use Compile for it, though it fails and produces an unknown error message: ...
12
votes
2answers
642 views

How to set focus of a dialog window?

I have a dialog, which, when pops up, requests input from the user. How can I set the window up that the focus is on the InputField of the new window (i.e. the ...
11
votes
1answer
145 views

BaseStyle ->AbsoluteThickness[somenumber] doesn't work in version 10?

Users of version 9 might be surprised by this outcome: Plot[{Sin[x], Cos[x]}, {x, 0, 5}, BaseStyle -> AbsoluteThickness[5]] It seems that ...
11
votes
3answers
914 views

Plot Matlab icon

I started to explore this on a whim and hasn't succeeded yet… Some introduction for the icon is found here but I can't understand it very well. (I admit that, though playing with ...
11
votes
3answers
218 views

How to efficiently find moments of a multinormal distribution?

I have a multinormal distribution with covariance matrix $\sigma$ and zero mean. I want to find moment $$ E[x_1^{r_1}x_2^{r_2}\cdots x_n^{r_n}] =\,? $$ Of course, there is a build-in function ...
11
votes
3answers
969 views

How can I transfer mathematical expressions between Mathematica and Maple?

Is there a simple way to copy mathematical expressions between Mathematica and Maple (or at least in one direction)? I mean only expressions built from numbers and predefined mathematical functions, ...
11
votes
2answers
451 views

Soft-Match String Comparison

I have a list of names in which I would like to check for duplicates. However, within the list, the duplicates may not show up as exact duplicates of each other - for instance, ...
11
votes
1answer
338 views

Precise cropping with ImageCrop

The built-in ImageCrop function "effectively removes borders from image whose pixel value distribution is almost uniform" (emphasis mine). I need an efficient ...
11
votes
1answer
268 views

Is it possible to use Compile on a function with optional arguments?

My Mathematica is a little rusty, so apologies in advance. I think my problem is quite simple, but I can't seem to find the answer on my own! Simple example : ...
11
votes
3answers
855 views

Can Mathematica show me a fraction with a repeating decimal notation?

The value of 3/817 when expressed using the N[3/817, 100] shows me data without helping me see the repeating patterns: After I ...
11
votes
1answer
278 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 ...
11
votes
2answers
3k views

How to print without having newline added automatically at the end?

Print["first part of the result", DateString[]] Print["addition to the result", DateString[]] will add a newline character at the end of line automatically for ...
11
votes
1answer
207 views

Manipulate[] inside DialogInput[]

I would like to get input from an interactive dialog that uses Manipulate[]. But I find that my Manipulate[] breaks when I put ...
11
votes
4answers
3k views

How to change default notebook background color?

How does one change the default notebook background color?
11
votes
2answers
542 views

Correct way to handle mysterious NaN` result from MathLink function

I have a Mathematica expression that is mapped onto an external C function via MathLink. The external function passes a ...
10
votes
3answers
101 views

How to limit number of user-defined messages issued per evaluation

I have written code such that if it runs into a particular function, a warning message is issued. However, it is common for the program to call this function several times in a single evaluation, but ...
10
votes
2answers
327 views

Hatched Filling for ListPlot

I am plotting to data curves using ListLinePlot. I like the look of Filling, but this is going to be printed, so I want something both black and white friendly, but giving more definition and ...
10
votes
3answers
521 views

How to use legends from PlotLegends in LevelScheme?

I've been attempting to find efficient ways to generate graphics with legends for export, and have been working with both LevelScheme and the new (to v9) ...
10
votes
1answer
1k views

What is the full list of all font families?

I'm having trouble finding a complete list of the FontFamily strings that mathematica supports.
10
votes
1answer
1k views

How to work around Mathematica hanging when showing a large SparseArray?

Note: This is fixed in 9.0.1. In Mathematica 9, if I display any large SparseArray object in the default way (which looks something like ...
10
votes
1answer
592 views

How to get zeroth-order (piecewise constant) interpolation of scattered data?

Given a collection of scattered data points in 2D and associated function values, data = RandomReal[1, {100, 3}]; we can get a piecewise linear interpolating ...
10
votes
2answers
3k views

Use different ColorFunction for each function plotted

When plotting two curves on one plot, you can specify different colors for each function: Plot[{Sin@x, Cos@x}, {x, 0, 4π}, PlotStyle -> {Red, Blue}] To ...
10
votes
2answers
232 views

How to extract a specific element from EXIF photographic metadata?

It's now possible to import photographs into Mathematica and import the EXIF data at the same time: i = Import["ExampleData/coneflower.jpg", "ImageWithExif"] ...
10
votes
3answers
731 views

How can I type left (sub)superscript?

I want to type in my variable next to its plot and I'm typing the text in using Inset. However my variable has superscripts to the left. Say it looks like this: $ ...
10
votes
2answers
659 views

Detecting edge/region in contour plot

I am interested in improving this plot: which I produced with the following command: ...
10
votes
4answers
423 views

Building a tree

Given a list of word characters, such as this one, I'd like to build a tree, similar to this makeTree function, but with the tree in a different format. So, for an input such as ...
10
votes
1answer
340 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?
9
votes
3answers
425 views

Find intersection points with V10

My question departs from this one: Find intersection of pairs of straight lines but now I want to find the points with the new V10 Region-functions. ...
9
votes
1answer
150 views

In version 10 EvaluationCompletionAction “ShowTiming” no longer gives useful output; any solutions?

Bug introduced in 10.0.0, fixed in 10.0.2 In version 10 using this Front End option no longer gives useful output: ...
9
votes
2answers
258 views

How to change the appearance of a Cell GroupOpener?

I would like to change the Cell GroupOpener appearance. In the present Mathematica design it is too small and can be missed by a reader unfamiliar with Mma. I know, how to change its color through ...
9
votes
4answers
386 views

Exporting data extensions in fits file

Context In Astronomy the de facto standard for images and data is FITS. I would like to export heterogenous data sets into a single fits file. Attempt I am interested in exporting into a fits file ...
9
votes
2answers
217 views

Mathematica: How to create a function that returns a property similar to how LinearModelFit works?

I'm trying to write a custom function in Mathematica, myFunc[x]. I want to be able to define properties of the function so that the user can call ...
9
votes
2answers
242 views

ScheduledTask with scoped variables. Working with timed evaluation

I guess I have to try harder and focus more but timed evaluation always frustrates me. I will show the issue on simple example of delayed trigger. ...

15 30 50 per page