11
votes
2answers
543 views

How to add a vertical line to a matrix?

Today, I want to write a program to show the solving process of a the inverse of a matrix, and I use the Elementary Transformation, so I need to add a vertical ...
2
votes
3answers
131 views

MapAt a function at specific positions

I'm trying to solve for $p3$ in 3p3-5 = p1 + p2 at positions where p1*p2 == 0: ...
7
votes
2answers
633 views

Modifying parameters: Set::setps in the part assignment is not a symbol [duplicate]

Ok, this will probably be a silly question, but I can't get my head around it. I'm making a simple module that, given a list and two integers, will swap the position of the elements in the list.(...
6
votes
3answers
221 views

Weird output of DistributionChart

I have a larger data set and want to display it using DistributionChart. ...
5
votes
1answer
1k views

NDSolve and Piecewise functions

I want to clarify upfront, This is not a please help me get the answer to my homework question. I know what I need to do I just do not know how to get mathematica to do it. I am working on an ...
5
votes
1answer
206 views

Visualization/colorization of many outliers in a BoxWhiskerChart

Imagine a larger data set which I want to display using BoxWhiskerChart. ...
2
votes
1answer
186 views

How can I load << MathWorld`Curves`?

I'd like to recreate in Wolfram Programming Cloud the plot in http://mathworld.wolfram.com/notebooks/SpaceCurves/Slinky.nb How can I load ...
0
votes
2answers
256 views

Plotting (Graphing) a Quadratic Function with Vertex and Roots

I'm new to Mathematica and I'm not really familiar to the Mathematica functions and the language. Could any of you help me plot a quadratic with the following characteristics: vertex at (1.5, 1.75) ...
1
vote
0answers
191 views

Derivatives of Convolutions with Integration by Parts and Delta Functions

I am not even certain how to approach this problem. f[x] is a pdf: positive definite, normalized, and approaching 0 at +/- Infinity p[x] is f[x] convolved to a normal dist of mean = 0, variance = v. ...
0
votes
1answer
94 views

How to plot multiple orbits with more than two functions

Using a program given to me (which was designed to have a particle orbiting another of infinite mass), I tried to extend it to the motion of two particles orbiting a common centre of mass. I have a ...
4
votes
1answer
496 views

Formatting ticks of axes to scientific format and modifying the labels [duplicate]

I was trying to plot a function, but had a problem with the tick labels staying close to each other (top plot). DiscretePlot[RmvsB[b], {b, bmin, bmax, bstep}] ...
0
votes
1answer
354 views

How to open *.sif files with Mathematica [duplicate]

While I am processing my data collect from an Andor EM-CCD, I find it diffcult to import the file into mathematica. I think mathematica can open this kind of files since that Matlab can open it. So if ...
3
votes
1answer
407 views

Indeterminate expression 0^0 encountered

I'm new in Wolfram Mathematica so the the question may seem quite simple. I define the following function ...
2
votes
2answers
423 views

Given a system of inequalities, how to make Solve find out that two variables should be equal?

Given two boolean variables x1 and x2 (in the sense that they are in the range [0,1]), if I try to solve the following equation system with Solve: ...
9
votes
3answers
274 views

Improving selection of elements from large multidimensional array

Frequently in my profession I deal with large arrays of data. Typically these are mixed types including integers, strings, dates, and reals. To recreate a typical data array: ...
9
votes
4answers
411 views

How to eliminate the white gaps in the graph

Here is my code ...
4
votes
1answer
194 views

What's wrong in FunctionPeriod?

FunctionPeriod[Sin[16 Pi x/5 - Pi/8], x, Integers] 80 then I ListPlot the function: <...
3
votes
4answers
217 views

Plotting recursive from a for loop

our assignment is that we have make a plot for the possition of 1's From the recursive function if a[n-1] is even then ...
5
votes
1answer
293 views

Compile nested Sums

I want to compile an expressions that contains nested Sum-expressions. A simple example that gives me problems is: ...
1
vote
0answers
65 views

Show actual Interpolation function [duplicate]

Is there a command to show the actual function when using the Interpolation command? For example, f = Interpolation[{1, 2, 3, 5, 8, 5}] returns ...
3
votes
1answer
128 views

How to plot a 2-D function of points which is a function of points from the Unit Circle

Consider the set of points $(x,y)$ such that $x^2+y^2=1$. Consider the functions $f(x,y)$ and $g(x,y)$ and I want to plot the set of 2-D points whose co-ordinates are $\left(f(x,y),g(x,y)\right)$. An ...
23
votes
0answers
436 views

A documented syntax of FileNames doesn't work?

Documentation discrepancy present through 10.3 According to the documentation for FileNames under Details: However when I attempt to use this syntax I get an ...
0
votes
0answers
42 views

Numerical Error with Matrix operations [duplicate]

A is a 3x3 matrix, b is a 3x1 vector. I try to convert [A|b], a 3x4 matrix, to [I|0]. So the formula is right multiple ...
13
votes
1answer
460 views

How can I read compressed .Z file automatically by Mathematica?

When I read .Z file by something like jpldatstring = Import["ftp://cddis.gsfc.nasa.gov/products/jpl/2003/jplg0040.04i.Z"] Unfortunately, it turned out that "...
0
votes
1answer
132 views

Rename a list of files [duplicate]

I need to rename a list of files .bmp having name like 1.bmp, 2.bmp,...,155.bmp. I want to get a list of files having the same number of digits in name like 001.bmp,002.bmp....,155.bmp. I am trying ...
2
votes
0answers
64 views

How to update Plot and some output inside NDSolve callback (StepMonitor)

I have the following problem. I am calling NDSolve to solve a system of first order differential equations (nothing fancy), except that the number of equations measures in thousands and the number ...
1
vote
2answers
93 views

Error using Nsolve with system of two equations: “Use Reduce”

Having some odd behavior with some mathematica code I am running. I am solving a simple system of two equations but mathematica gives an error and asks to use Reduce? I looked up in the manual but ...
2
votes
1answer
127 views

Manipulating parameters in a complex algorithm

I have a complex algorithm that depends on: A wavelet basis A number of sampling points out of a distribution A thresholding value I want to be able to play with different scenarios using ...
3
votes
1answer
147 views

Calculate the relationship between the duration of two oscillating functions

I am trying to quantitatively determine the relationship between the length of two oscillating functions. Meaning, what is the duration of the green spike in relation to the blue square? Does anyone ...
1
vote
0answers
78 views

How to select default graphics device for charting?

Is there a way to tell Mathematica to use a specific graphics device for charting? My laptop has two graphics devices; an on-board Intel chip and a Nvidia graphics card. I noticed in Mathematica's ...
9
votes
0answers
355 views

J/Link doesn't work with Java 8?

I have some code that successfully uses J/Link (well... until today when something I was doing something with it that crashed the JVM, so), and I recently tried running it under Java 8. I then get a ...
2
votes
1answer
76 views

How to Overwrite the DisplayFunction?

How to overwrite the display function of TemplateBox? For example, if I have: ...
4
votes
1answer
120 views

Casting Dataset internal type from Assoc to Struct

Using: planets = ExampleData[{"Dataset", "Planets"}]; The full form of this projection displays the internal type def: ...
10
votes
3answers
438 views

How to replace the first occurance in an expression instead of replacing all?

Is there a function that replaces the first occurance of the expression instead of replacing all? For example, if I have HoldForm[x + 2 + 4 + x] /. x -> 4, is ...
-1
votes
1answer
960 views

How do I store values in a for loop into an array and then plot that array? [duplicate]

What my title said and I want to plot the values of the array. still new to mathematica and programming so its hard to formulate my question just right
13
votes
7answers
1k views

How to assign a list of numbers into letter grades

Here is my list: ...
0
votes
0answers
64 views

solving nonlinear equation [duplicate]

I typed this below code in mathematica 9.0 but wasn't solved: ...
12
votes
3answers
919 views

Finding the surface area of a 3D convex hull

I have noted several instances here and here where ConvexHullMesh, introduced in v10 has been used to greatly simplify some geometry problems. Determining the ...
1
vote
0answers
27 views

Coloring problem in plot3D with transparent texture [duplicate]

I need to plot multiple surfaces with textures. Each texture is a matrix plot with transparent background. In this way, we can see the multiple surfaces from the top. ...
2
votes
2answers
248 views

Another weird plotting result

I asked a question this morning here, which has been resolved. However, I got another problem. I want to add some lines to the graph, which turns out glitched. The code is as follows, ...
9
votes
3answers
321 views

Random Integer Sequences

I want to construct a random square matrix in the following manner: a) Three states [0 | 1 | 2] are repeated ...
3
votes
1answer
109 views

JordanDecomposition in Mathematica

I'm trying to find the Jordan Decomposition in Mathematica for $$ A=\left( \begin{matrix} 2& -5& 8&-12\\ 1& -2& 4&-8\\ 0&0&2&-5\\ 0&0&1&-2 \end{matrix} ...
6
votes
1answer
164 views

Unable to compile to C

I used to be able to compile to C without problems, but from one day to the next, when I try to compile something, e.g. ...
2
votes
2answers
70 views

parsing a list or vector

I have a table of elements that generate a list q[i_]=i; B=Table[q[i],{i,1,50}] I would like to parse the list meaning, take the first 10 elements, then take ...
1
vote
2answers
112 views

Make a partition with a rule [duplicate]

I wrote this line of code : {{1, 1, 1}, {1, 1}} /. ((x___ /; Length[x] > 2) -> Partition[x, 2, 1]) generates this error : Partition::pdep: Depth 1 ...
3
votes
0answers
287 views

Import displays DICOM images as black rectangles (Mma v. 10)

My problem concerns Mathematica version 10.0.1.0 with OS X 10.9.4, OS X 10.9.5 and it does not occur in Mathematica version 9.0.1.0 (on the same computer and OS). About 90% of my DICOM images are ...
10
votes
3answers
475 views

Combining many plots with Show produces wrong x-axis position and wrong filling

The code is as follows, ...
8
votes
1answer
936 views

Drawing an arrow or a solid dot on a curve?

I want to draw arrows and the solid dot like in this picture on a curve.
2
votes
1answer
171 views

Question about using NDSolve with a matrix equation

I tried to use NDSolve to study a matrix-valued differential backward equation. The following program seems to work: ...
11
votes
1answer
534 views

WSTP broken by upgrade to 10.0.1?

Bug introduced v10.0.1 and fixed in 10.0.2 Everything was working fine with WSTP (the successor to MathLink) in 10.0.0. But I upgraded to 10.0.1 today and now I can't compile either my programs (I'...

15 30 50 per page