# All Questions

16 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 ...
35 views

### Verify positive definiteness using random numbers

I wish to verify whether T'T - IdentityMatrix[2] is always positive definite for a certain choice of elements of T'T. ...
7 views

### Random Integer Sequences

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

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

The code is as follows, ...
17 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. ...
18 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 ...
307 views

### Improve TextRecognize on numbers

I have an image contain only numbers, and TextRecognize fail to recognize some numbers: img=; TextRecognize[img] (*826718*) The documentation says that "The ...
19 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 ...
13 views

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

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 If Max-Min > 0, then another variable ...
11 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 ...
67 views

### getting vertices in order from spanning tree

I've got spanning tree for some weighted graph (edges labeled 1-6) - for example: ...
28 views

### Dealing with implicit function

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

### Finding Hamiltonian path in Graph

I have weighted, undirected full graph (generated from points in R^2), where weight between every two vertices are euclidean distance between corresponding pair of points. What I'm trying to do is ...
418 views

### How to make a 3D topographic globe?

I've made some attempt with this dataset of elevation. But I have some trouble with ListSurfacePlot3D, which can not show the globe correctly: And I've checked that the data is out of problem, ...
132 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

### How can I eliminate infinite error messages from “Solve” function with multiple linked functions?

I am trying to extract four solutions from four equations which are linked together. I am using the "Solve" function with 4 equations and 4 unknown variables to solve. I have created the function to ...
124 views

### Mathematica's equivalent to the Python's Zip command in List-comprehension? [on hold]

What is Mathematica's equivalent to Python's ZIP command? Is this called nesting? It means iterating over sub-sets of values like the below example. How can I do it in Mathematica? Example in Python ...
114 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 ...
60 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 ...
561 views

### How to generate a cartoon of a face

I want to use Mathematica to generate a cartoon of a face. For example, some thing like this: I think it can be done using Mathematica, but I really don't know how to do it. How can it be done, and ...
57 views

### Similarity of two plot to each other [on hold]

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

### Failed to connect remote Mathematica kernel using J/Link

I'm trying to connect to a remote Mathematica 8 kernel (on a Windows machine) using J/Link. On the client machine, I put the JLinkNativeLibrary.dll file in ...
181 views

### Export dataset to JSON

I'm experiencing a weird issue. Consider a dataset defined like this: dataset = Dataset[{<|"a" -> 1, "b" -> 2|>, <|"a" -> 3, "b" -> 4|>}]; ...
58 views

### Changing mouse appearance at notebook level

Ideally, I'd like to change the mouse pointer appearance(s) at notebook level, from a styleseet. However, I'd be satisfied only by changing its color. This is the main issue keepeing me away from ...
35 views

### NDSolve giving the wrong solution?

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

### Export CSV from tables

I am reading my csv which looks like: float,float,float,integer,boolean I read it with: ...
3k views

### How to convert a 2D image into a 3D graphics?

I have an image I would like to make into a .dxf and to do this I need a Graphics3D object. Is there anyway I can do this? Can ...
620 views

### How to export CSV from Mathematica?

I have previously been using logf[x_, y_] := f[x, y] /. v_ :>(PutAppend[Unevaluated[f[x, y] = v;], "out.txt"];); which produces output like ...
127 views

### Different results of a definite integral $\int_0^{\cosh ^{-1}(a)} \frac{1}{\sqrt{a^2 \text{sech}^2(x)-1}}\, dx$

Edit The define integral is solved using substitution method as Dr. Wolfgang Hintze says like this. $u$ =$\frac{\cosh ^2(x)-1}{a^2-1}$ $dx$ = $\frac{\left(a^2-1\right)}{2 \sinh (x) \cosh (x)}du$ ...
24 views

### ParametricPlot3D Plotting empty Graph [on hold]

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

### CharacterEncoding failed when Import or Export as pdf

folowing is the content my test nb File: pdfTest.nb, contain some chinese characters: SampleCode1:pdf输入不正常。 After Save as or Export, pdf file looks well for the ...
207 views

### Export notebook file without launching front-end

I am using a Mathematica script to programmatically generate a Mathematica notebook. The script generates a Notebook expression and then uses ...
59 views

### How can I export graph as PDF with metadata such as Title and Author fields

I want to export a figure from Mathematica in PDF format. Moreover, I want to fill Author and Title fields of the PDF. For example, to fill Author field, I use the following code: ...
33 views

### Not getting proper x-values in a ListPlot [on hold]

I have a table of data points to be subtracted by another table of data points. I have succeeded in subtracting the y values of each data point successfully, but it is the x values of each data point ...
191 views

### Rotated Rectangles

I would like to produce an image similar to the upper half of this graphics by Victor Vasarely. All I could produce so far is this dilettante image: ...
62 views

### ListContourPlot3D blank box?

I have a (long) list of {x,y,z,f} values generated using a finite element software package. I've tried using ...
59 views

### How to use SparseArray in CUDA?

Sparse arrays are widely used in many scientific applications where memory and time are strictly limited. For a considerable speedup one can use CUDA. Since Mathematica 8 we can conveniently use CUDA ...
849 views

### Creating a foggy image

I want to create foggy images like this one (produced with Adobe Photoshop): Not at least familiar with Mathematica's Image processing capabilities, the only ...
201 views

### Mean path length of randomly generated graphs

I am looking to find the the average path length of 1000 random graphs with the following degree distribution, a few of the vertex degrees are included below ...
46 views

### how to depict a network with a legend

Because my network nodes have real world names more than a few characters long, I'd like to label them with a shortcut, e.g., n1, n2, n3, ..., and put a legend on the side something like this: n1 - ...
92 views

### How to change the filling color under a plot according to a value?

Mathematica has an option to fill the space under a curve with a value: ListLinePlot[Transpose[data][[1]], Filling -> Axis] I have a dataset ...
15 views

### Right data format when EmpiricalDistribution expects “Rectangular Array”

I have the following code to generate random data (these are the eigenvalues of a non-central Wishart matrix, and I am interested in their distribution). m = 2; n = 3; nonce = {{1, 0}, {0, 0}, {0, ...
75 views

### Export textanalysis to pdf

In the helpfile there is a nice axample of text analysis (example/LexicalAnalysis) ...
301 views

### Torus triangulation

I'd like to plot something similar to this but with a triangle instead of a pentagon. Also, I'd like to triangulate the faces, that is, to insert the diagonals for each face of the 3 prisms used. In ...
39 views

### The “Save” under “File” and “Undo” under “Edit” do not work in Mathematica 10.0

Each time I click "Save" or "Undo" button from the notebook menu, some new notebook window similar to this pops up: And the file is not actually saved or the last step is not actually "undone". Is ...
1k views

### Is there a way to recreate the typical Red/Blue-Postereffect using Mathematica?

I think nearly all of us have at least once seen an image like this: So I wondered whether it is possible to recreate this effect using Mathematica because it seems like it wouldn't need that many ...