2
votes
2answers
192 views

Equivalent of MATLAB's “hold on” function

I'm making an animation where the number of iterations is known. I tried using Dynamic, as I prefer updating in real time over generating data before plotting. I ...
9
votes
2answers
161 views

Drawing Cylindrical Segment with Graphics3D

For a visualization I need a combination of 3 Cylindrical segments to visualize the incident, reflected and refracted beam of light at a surface. I got as far as the following code. ...
3
votes
1answer
108 views

Why is this code in functional style is slower than procedural style?

I know that in Mathematica a functional programming style is often more efficient than procedural style programming using For loops. But the code shown below seems ...
5
votes
4answers
291 views

How can I return the color at a coordinate in an image?

I have an imported and cropped image: TestPicture = Import["filepath.jpg"]; TestPictureCropped = ImageCrop[TestPicture, Min[ImageDimensions[TestPicture]]]; How ...
1
vote
2answers
73 views

Why will my plot not generate my entire plot?

I am trying to plot a sum of multiple HeavisidePi functions. A typical example would be something like this: ...
2
votes
1answer
44 views

How do I access the binary matrix underlying an EdgeDetect output?

Applying EdgeDetect to an image generates a black and white edge-detected image, which I suspect corresponds to an underlying binary matrix. How can I access this ...
-1
votes
2answers
89 views

How can I define a function which is the sum of other functions?

I have a function which is summation of another function over different i,j iterators. U[r] = Sum[V[r, i, j], {i, 1, 5}, {j, 6, 10}] and ...
1
vote
3answers
112 views

Finding max, min, and closest root of two dimensional data

I have some data that is two dimensional (traditional (x, y) format) as so: var = {{x1, y1}, {x2, y2}, {x3, y3}} I would like to search through that large list ...
7
votes
5answers
229 views

Multiplying two dimensional data by a constant

I have a list of lists of the form: {{1, 2}, {2, 4}, {2, 8}} But I want to multiply only the second dimension of that data by a constant. I know I could do this ...
28
votes
1answer
476 views

How to compare power towers in Mathematica?

First I tried it directly, but it overflowed: ...
1
vote
0answers
43 views

Decimal representations of analytic values in an expansion

I have a solution to an ODE (which I call sol), which I would like to expand in terms of Log[1+x] around x=-1. I thought that: ...
2
votes
0answers
68 views

Can I customize In[] and Out[] headers?

Can I customize the In[] and Out[] headers? I'd like to add $UserName, ...
2
votes
1answer
62 views

How to make a notebook not savable?

How to make a particular notebook not savable? Optionally, how to do this by evaluating a command in the notebook?
1
vote
1answer
93 views

Dynamically labeling a family of curves [duplicate]

I have created some simple code which generates a plot. This plot contains a family of curves created by changing a single parameter "k". I use the Table function within the Show function to iterate ...
1
vote
2answers
60 views

Font size in PlotLegends, using Table to generate the list in the legend

I am currently trying to get to graph with several functions as below. My problem is that I cannot change the font size in the legend (authomatically generated numbers by "Table" function). This code ...
10
votes
1answer
217 views

Why can't I change the value of MaxRecursion in NIntegrate when integrating BesselJ?

I am trying to evaluate this integral numerically $$ \int_0^{\infty } J_0(q R) \tanh(q) \, \mathrm{d}q $$ for large values of $R$. This makes the integrand oscillate more quickly and Mathematica ...
0
votes
2answers
107 views

Correct use of ListInterpolation

I have a small problem with ListInterpolation. I want to use ListInterpolation to postprocess result of a numerical simulation. ...
8
votes
1answer
92 views

Unset variable by its name given as a string

Unlike the function Clear, the function Unset does not work for string patterns. Given the name of a variable as a string, how can you unset the corresponding variable? Example: Given: ...
2
votes
3answers
147 views

Symbolic manipulation of functional form

I have a functional polynomial expression of the form: ...
2
votes
0answers
116 views

Mathematica Rlink [closed]

I am trying to run a series of computations using RLink. First I initialize the tools I need: ...
3
votes
1answer
97 views

String replacement to make the TeXForm output beautiful

This question is inspired by this question: How to convert the symbol $d$ in Integrate into $\mathrm{d}$?. Although it’s not a big problem, the TeXForm can be ...
1
vote
2answers
99 views

Count and plot the number of solutions in an interval

I have equations depending on one or more parameters and I want to find and plot the regions in the parameters space in which there are a specific number of solutions. For definiteness let's ...
5
votes
0answers
64 views

Using perpendicular offsets in FindFit

I want to use perpendicular offsets in the built-in FindFit function. Are there any possible ways or do I have to code everything by myself?
1
vote
1answer
167 views

Why is arithmetic faster for inexact arithmetic?

I have been trying to compute eigenvalues of a rather sizable matrix A, about $500 \times 500$ (but sparse). I asked Mathematica to compute ...
2
votes
0answers
79 views

How to make the imaginary part of a +0. I zero globally?

Values like a +0. I are really annoying. Answers from How to reduce expressions with complex coefficients in the form of a+0.*I? Is there a way to globally set when to treat a very small number as ...
1
vote
1answer
93 views

why there is a small imaginary part [closed]

I encountered a problem. I have a eigenvector eigvsI[1] ...
4
votes
1answer
71 views

Why can't I change the style of a cell repeatedly?

I ran into this when I was working with an example from the Help Pages of V9. Cells is a new function added in V9. The following appears to work the first time it ...
1
vote
1answer
70 views

How to increase precision: $MinPrecision does not help

I have the following series: ...
2
votes
0answers
36 views

Multiple screens support for slideshows

I really like using Mathematica for building slideshows/presentations. But is mirroring the only way to see the content both on the laptop's screen and on the projector? When using screen mirroring, ...
0
votes
1answer
77 views

Labelling Curves Using ListLogLinearPlot within DynamicModule (So Close)

I currently have a large number of time-series datasets in the form where the name and time-series transposed data, so I have a list of lists of names for datasets and their time-dependant data. The ...
2
votes
4answers
191 views

Importing or reading data in binary format 212

I have a binary data file in format 212, and I want to import the file into Mathematica. How do I read or import binary format 212? I almost have no direct experience of working with any binary ...
1
vote
1answer
74 views

Finding n-th term of a sequence of functions

Lets say, I have the following series of functions, $f_1=a+1$ $f_2=a^2+2a+1$ $f_3=a^3+3a^2+3a+1$ Assume that $f_4, f_5,$ and $f_6$ are also known. However $f_n$ is not known as a function of $n$. ...
3
votes
1answer
86 views

Does LinearModelFit perform an ordinary linear regression (least squares)?

Does LinearModelFit give an ordinary linear regression? I see lots of options, but nothing like "least squares" or OLR.
6
votes
1answer
82 views

How to calculate this integral? Integrate[BesselJ[0, x - BesselJZero[0, 1]]/x, {x, -Infinity, Infinity}]

I tried to calculate the following integral, but it returned unevaluated. ...
2
votes
0answers
52 views

Put webMathematica folder outside Tomcat webapps folder?

Is it possible to put the webMathematica folder outside the usual Tomcat webapps folder and still have webMathematica work? ...
1
vote
0answers
36 views

Scaled ColorData Function [duplicate]

I have a four-dimensional array c, in which the first dimension represents time and the other three dimensions represent (x,y,z) ...
0
votes
0answers
38 views

location of csv file when importing [closed]

I am trying to import csv file to mathmematica. However, when I tried to import, Mathematica was not able to find the file (see below). Do I have to move the csv file to the specific position? ...
1
vote
3answers
93 views

Sync Animated Plots

Here is my Lorenz code: ...
1
vote
0answers
64 views

Most CDF displays in browsers suddenly became grayed out [closed]

Suddenly, starting May 5th, most CDF displays on Chrome and Firefox became grayed out. This problem occurs for the displays in my blog (old ones and new ones), and displays of Wolfram Demos from their ...
6
votes
1answer
80 views

Remap Ctrl+Space?

The Ctrl+Space keyboard shortcut is really important in Mathematica for using Placeholder[] boxes in input templates. Unfortunately, Ctrl+Space occupies the ...
5
votes
0answers
106 views

Parallelizing is much slower than single kernel evaluation?

Starting with a vector of matrices, tVec, I would like to parallelize the multiplication of each element with the same matrix ...
1
vote
1answer
57 views

How can I assign specific colors and sizes to 2D coordinate arrays being plotted with ListLogPlot?

I'd like to plot two sets of coordinates in two different arrays using ListLogPlot, and be able to individually specify the sizes and colors of the datapoints for each array. Things seem to work ...
0
votes
2answers
82 views

Import matrices side-by-side separated by TAB

The problem is 0(TAB)0 interpreted falsely as a dark red square although it should be a dark red square surrounded by zeroes/ones. Import has different data-formats ...
2
votes
2answers
176 views

Working with a database

I just started to work with a database through Mathematica. I have a large data set. I use an .mx file to store my data. Now I have to store the data in a database, ...
5
votes
1answer
96 views

How can I change the size of the plot markers

I use ListPlot in order to plot four sets of data and also insert legends in my plot. Here is the Mathematica code ...
3
votes
0answers
54 views

Command to get License Management Monitor info

Using Netlink, when we have more users than Mathematica licenses (used in a pool), we get messages such as: Error code: 11. Connected MathLink program has closed the link, but there might still be ...
0
votes
0answers
53 views

Is it possible to create a styled cell with some dynamic contents

I'm making a personal templalte/stylesheet, Let me explain my question use the [correspondence] sytlesheet: Create a New Cell, Alt+1 or Alt+Shift+1 (windows system shortcut) set the Style is ...
0
votes
1answer
79 views

How to manipulate a Fourier sine series?

I would like to plot the Fourier sine series for $f(x) = x$. I would like to manipulate the parameter n from $0$ to $10$ and plot the sine waves over $(0,1)$. My ...
3
votes
3answers
218 views

Implementing the Farey sequence efficiently

There is of course the silly implementation: FareySequence[n_] := Union[Flatten[Table[j/i, {i, 1, n}, {j, 0, i}]]] However, there are numerous properties and ...

15 30 50 per page
1 6 7 8 9 10 157