7
votes
2answers
373 views

Computing Many Slow I/O Operations

In working on a custom stock screener, I often need to run mathematica code like this: ...
3
votes
1answer
12 views

How to execute a notebook in background

I am developing an algorithm that take time to return results. I thought if I could run this notebook in background and continue to develop the rest of my work. It is possible to do that?
1
vote
1answer
20 views

How can I operate the (direction of) arrows in ContourPlot separately?

I get into trouble when I use ContourPlot to draw streamlines. This is my date.The data are a little bit big, please be patient. Here is my code: ...
0
votes
0answers
8 views

Align axes in GraphicsGrid - with one rotated figure

I would like to align the axes of the three plots: g3, gPosteriorMarginalMu and gPosteriorMarginalSigma: ...
1
vote
0answers
14 views

How to execute code on FrontEnd quit?

I would like to execute a block of code whenever the FrontEnd quits. I know about $Epilog, but it seems that this would execute every time the kernel quits, which is not what I want. Does anyone know ...
0
votes
1answer
17 views

How to speed up execution of this function?

How can I speed up the execution of following function, specifically for larger values of n? ...
1
vote
1answer
73 views

Control which frontend session/kernel the Workbench gets attached to

(I am new to Workbench) I have 2 or 3 Mathematica frontend sessions open with a few of them running some long-running codes. When I try to open/edit a code in Workbench, I see that it sometimes it ...
0
votes
1answer
16 views

Add a legend to a DiscretePlot - Version 8

I have found several topics with legend issues but no answer to my problem. I have a function and I need to plot it for integers only (hence discrete plot) and then add a legend too. But ...
1
vote
0answers
22 views

How to delete specific elements from diagonal of matrix

I have a matrix that I am parsing, which I can do pretty easily. It parses the designated rows and columns. However, on the diagonal I need to get rid of the elements that have the same number as the ...
0
votes
0answers
22 views
1
vote
1answer
14 views

Package function not evaluating

I have a short package like this: ...
0
votes
2answers
36 views

Compile a Module wich has a loop with undetermined bound

Suppose I have such a module as below: test[int_] := Module[{m}, m = Table[i, {i, 1, 10}]; Do[m[[i]] = i*i, {i, 1, int}]; Return[m] ] The bound for ...
0
votes
1answer
69 views

My matematica notebook dosen't work,its bring syntax error ,why?

i have many matematica notebooks and all of them are working clearly besides one which is the most important for me.There is my whole project.Please someone help me.What should i do???
3
votes
1answer
139 views

Working with abstract vectors

I often need to compute derivatives or integrals involving N-dimensional vectors (where the dimension could be equal to 2 or 3 but is not particularly relevant for the sake of the derivation). The ...
1
vote
1answer
72 views

Derivative of a plot [on hold]

I plotted a graph numerically, so I don't have a definition of the plotted function. Now I want to plot the derivative of this graph. Is there any way to do it in Mathematica? I have the following ...
1
vote
1answer
46 views

Astronomy: Transform coordinates from horizon to equatorial

I'm using Mathematica 10. Giving a longitude & latitude on Earth, giving a local time, how can I transform Horizon Coordinte (az , alt) to Equatorial Coordinate (RA , DEC). Use function so I can ...
16
votes
1answer
169 views

How to format usage messages such that function templates are parsed correctly?

Is it possible to format usage messages (with italic arguments etc) such that Mathematica 9 still parses function templates correctly? For example, plain usage messages work when pressing ...
3
votes
1answer
34 views

ParametricPlot3D: The Mesh shows some unexpected wires to the origin. How to remove them?

In the code below a hexagonal shape is defined and plotted. The ParametricPlot3D shows the hexagonal design almost as intended. However, the mesh makes some strange "wires" to x=y=0. This is ...
-2
votes
2answers
60 views

Module function corrupts string? [on hold]

I have the module who should replace some elements of a matrix with checkboxes ...
0
votes
2answers
48 views

Replace variables and redefine a function

I would like to redefine a function f(x)=1+2x^2 to a new function g(y)=1+2y by using the replacement ...
6
votes
4answers
78 views

Minimizing a function with a constant $l > 0$

I'm VERY new to Mathematica and would like some help with minimizing a function. $$f(x) = \frac{1}{2} \sqrt{\frac{\left(l^4+x^4\right)^2}{l^4 x^2}}$$ I want to find which $x-value$ (probably ...
1
vote
3answers
46 views

Import Data using selection criteria

I imported a file (text and numbers) and made constructed this. e[[1,All,{1,2,3,4,6}]] Column 1 is the name of the state. How can I get a subset of this where, say Column 1 is not equal to "New ...
5
votes
1answer
94 views

How to share LineLegend among sub-figures in GraphicsGrid?

Using GraphicsGrid, I have put two figures that share the same x-axis in a row. However, I failed to let them share a common ...
2
votes
0answers
28 views

Specifying and solving a PDE on an L-shaped domain

I wish to solve Laplace's equation with Dirchlet boundary conditions on an L-shaped domain as described here http://www.inf.ethz.ch/personal/tulink/FEM14/Ch1_ElmanSyvesterWathen_Ox05.pdf I know how ...
2
votes
1answer
48 views

'eps' equivalent in Mathematica

In Matlab there is a function 'eps'. eps Spacing of floating point numbers. D = eps(X), is the positive distance from ABS(X) to the next larger in magnitude floating point number of ...
4
votes
3answers
108 views

How to close external app from Mathematica?

Is there any analogue to SystemOpen for closing applications from Mathematica? Documentation says: SystemOpen["file"] is essentially equivalent to double-clicking the file icon in your operating ...
0
votes
1answer
63 views

Differentiating two tables x and y?

I have two tables x and y with x={673,674,675,...} and y={0,1,2,...} and delta=dx/dy. I would like to know how delta can be calculated knowing that delta is the derivative of x divided by the ...
2
votes
1answer
53 views

Dynamic overlay of graphics and plot while maintaining uniform coordinates

I have a plot and a graphic that I want to overlay onto one another while retaining a uniform sense of coordinates throughout the whole thing. I have tried to do this two ways and both suffer from ...
14
votes
1answer
206 views

Why some built-in functions are slow

I just wonder why some built-in functions are slower compared to some other ways using more than one built-in functions for doing same job. consider this example: ...
1
vote
1answer
37 views

Joint Distribution with a Constant

I would like to simulate from a joint distribution multiplied by a constant. e.g. 3*NormalDistribution[0,1]*NormalDistribution[1,1] I tried using something like ProductDistribution but that doesn't ...
20
votes
1answer
366 views

Total much slower in version 10

Compilation nowadays may give very fast functions. Here is an example for finding the sum of a list of machine numbers, just as the built-in function Total: ...
1
vote
1answer
10 views
0
votes
1answer
31 views

Product Distribution with Copula

I am trying to create a joint probability function that is of the form: f(a,b,c)=f1(a).f2(b).f3(c).copula where ...
5
votes
3answers
147 views

Is it possible to find generating functions of infinite sequences with Mathematica?

I'm trying to find the generating function of a sequence as $(0,1,0,1,0,1,\dots)$ but reading Mathematica's help on FindGeneratingFunction[] seems to tell me that ...
0
votes
0answers
26 views

Help needed for solving nonlinear ODEs [on hold]

I want to solve fourth order nonlinear ODE with known boundary conditions using Predictor Corrector methods, or shooting methods in Mathematica but don't know how to solve them with these techniques. ...
0
votes
2answers
43 views

PEANO Integers using successor function

I'd like to define the integers and operations on it by using terms. Starting from zero->init[] and nth->succ[n-1th] where succ[] is the successor function. I ...
3
votes
1answer
153 views

ArrayPlot copied to PDF shows blurred mesh

Certain (but not all) images displayed in ArrayPlot, and then copied to PDF, show what appear to be fuzzy mesh lines in white areas. An example is shown below. I ...
-3
votes
0answers
41 views

Function Expectation

I want to have a function result from this expectation is it possible? ...
1
vote
1answer
65 views

Strange interaction between Module and ListPlot

Why is the variable a ending up assigned to {1,2,3} after executing Module[{a}, a=Range[3]; ListPlot[a] ]
3
votes
3answers
98 views

Colorize an image using two parameters

I have a matrix of data. I use Colorize[Image[Rescale[data]],ColorFunction->"Rainbow"] to create an image from the data where the value of each pixel is used ...
5
votes
0answers
110 views

Is there a package or canonical way for writing test harnesses in Mathematica?

I've written a complicated function foo.1 I'd now like to simplify this function's code, and later enhance it with more features. With each change, however, I'd ...
1
vote
1answer
46 views

Discrete Fourier Transform with x axis data?

Usually, Fourier Transform in mathematica is supplied by y data only, like the famous Sin[x] transform example. What if my data is a list of ...
8
votes
1answer
507 views

Problems with “Test Connectivity” and the Pacletserver

I know there has been a similar questions to this already but the solution did not work for me so here again: I have internet connection and I can execute such commands like: ...
19
votes
1answer
1k views

Web Browsing Automation with Mathematica

I want to build a bot to automate web browsing, this mean something like: filling forms press "submit" buttons find certain text inside pages and so on... How can I do this with Mathematica? The ...
23
votes
1answer
264 views

StringCases is Confused with Patterns in Version 10.0.1

I observed the following with StringCases when trying to use rules/patterns. Here is a screenshot of the behavior: Not only is the pattern highlighted in red, ...
-1
votes
2answers
99 views

Palette for pasting matrix templates into a notebook

How I can build a palette of matrices?. So, I would like a palette with a 3x3 square matrix, a square matrix 4x4, 1x3 row matrix, 1x4 matrix row, column matrix 3x1 and 4x1 column matrix.
2
votes
1answer
68 views

EMF format imported in Word looks worse in version 10

In my work, I frequently use the "CopyAsMetafile" and "Paste" function in my Word document. Recently, I started working with Mathematica version 10 and negatively surprised that the display of ...
-1
votes
0answers
12 views

Interpolation using 3 input function [on hold]

I'm trying to interpolate a function: I have 3 inputs: x1,f1 x2,f2 x3,f3 and I want to have at the output a function of f1, f2 and f3. xout=g(f1,f2,f3) I don't know how to do it on Matlab. the ...
7
votes
5answers
212 views

Select a particular rules out of a list

rule = {beta -> 4, alpha -> 2, x -> 4, z -> 2, w -> 0.8} Select[rule, beta] Select[rule, beta &] Select[rule, beta -> _ &] How would I ...

15 30 50 per page