# All Questions

54 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 ...
97 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 ...
100 views

### A documented syntax of FileNames doesn't work?

According to the documentation for FileNames: However when I attempt to use this syntax I get an error: ...
29 views

### Numerical Error with Matrix operations

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 ...
44 views

### Stop watch coding for PCs [closed]

I am Kullan. I need a code for Stop-watch which will run in Mac or windows. The input Timing should be given by the user and Watch should be control by Manual interface. Thanking you..
33 views

### Multiple regions on same plot [closed]

Let $x$ and $y$ to be two real variables. Consider the regions $$xy\leq -\frac{1}{2}$$ and $$x^2+y^2 \leq 1$$. I want to see this regions on the same plot with different shadings. How do I achieve ...
122 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 ...
41 views

### Convergence Problem using FindFit

I have the following input where there is a convergence problem in the FindFit as shown in the attached figure.The figure shows 2 plots: one of the real data and the other of the fitted line. Any ...
32 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 ...
20 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 ...
52 views

### How to edit some properties of a figure with show function once we get the handle [closed]

I have a basic question here, I often have a figure like fig=ListPlot3D[] etc, then want to change some options of the figure, I know I can use the Show[fig,Options] to do this, but it often won't ...
72 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 ...
77 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 ...
79 views

### How to find the closed formula for a recursion [closed]

From theory of recursive functions, an example for linear recursion is: $$f_x = 0 \ \ \ x\leq 1$$ $$f_2 = 1$$ $$f_n = f_{n-1} + 8n - 18$$ If you want to find out a close formula for it, one way is ...
44 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 ...
78 views

### Missing Primes in List [closed]

In the following code why do I get even numbers instead of primes only: ...
40 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 ...
40 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 ...
42 views

### How to Overwrite the DisplayFunction?

How to overwrite the display function of TemplateBox? For example, if I have: ...
60 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: ...
293 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 ...
112 views

### Kernel crashes after Importing a file in Mathematica 10.0.1

Every time I tried to Import a file(tab seperated), the kernel is crashed with a very high probability. (Mostly, it is sufficient to try twice to experience a crash) A minimal example would be ...
38 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
52 views

### Invisible number?

Is there a way to define invisible numbers? Invisible[x] only gives the space of x, what if I want to have, for example ...
771 views

### How to assign a list of numbers into letter grades

Here is my list: ...
93 views

### Help explain a piece of code [closed]

I am a beginner of mathematica. I don't fully understand the following code from Another weird plotting result. ...
50 views

### solving nonlinear equation

I typed this below code in mathematica 9.0 but wasn't solved: ...
545 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 ...
21 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. ...
14 views

### Convexity of a finite Sequence [migrated]

I was wondering how to determine whether the following set is convex or not: All $A_1, A_2,..., A_m$are convex sets: $\sum^m_{i=1} A_i = \{ x_1+x_2+...+x_m,$ $x_i \in A_i, i=1,2,...,m\}$ can I ...
180 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, ...
281 views

### Random Integer Sequences

I want to construct a random square matrix in the following manner: a) Three states [0 | 1 | 2] are repeated ...
59 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} ...
80 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. ...
61 views

### list numbering problem

I have a list that is generated from a unparsed matrix, and another list that is generated by a parsed matrix. However, since the second one is parsed, the numbering of the elements in the list have ...
45 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 ...
61 views

### Table of multiple solutions, Finding each Max - Min then implementing boolean test [closed]

Starting from this equation $x^2 - 3 = y$, where $y$ goes from $0$ to $4$ in steps of $1$, I want to do the following: For each pair of solutions, take Max-Min (Done) For each value of $y$ that ...
62 views

### Make a partition with a rule

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 ...
32 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 and it does not occur in version 9.0.1.0 (on the same computer and OS). About 90% of my DICOM images are displayed as black ...
46 views

### Dealing with implicit function

I encounter a big problem when I use Mathematica to deal with implicit functions. ...
294 views

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

The code is as follows, ...
288 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.
52 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: ...
240 views

### WSTP broken by upgrade to 10.0.1?

Ubuntu 12.04, Mathematica 10.0.1. 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've changed ...
78 views

### Similarity of two plot to each other [closed]

I want get the similarity of two different plot by Percent ... I have many plots for comparison like below : y : ...
72 views

### How to avoid the initialization cell evaluation dialog box?

I have a Mathematica notebook, a 940 NB file divided into 25 Sections. When I evaluate a cell with Shift+Enter, I always get a dialog box as shown below: Question: Is it possible to avoid it by ...
86 views

### NDSolve giving the wrong solution?

I'm considering the non-linear second order ODE DE $=0$, with DE given by ...
42 views

### ParametricPlot3D Plotting empty Graph [closed]

I am trying to plot a position function r(t)= sin (2[Pi]t)i + (t^3)j +cos^2 (2[Pi]t)k by inputting ParametricPlot3D[{sin [(2 [Pi]t)], t^3, cos^2 [(2 [Pi]t)]}, {t, 0, 2}] into Mathematica 10.0. ...