The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
41 views

Data Table Manipulation in Mathematica 10

I would like to select columns from a table by column name. I tried the solution described here: Data Table Manipulation in Mathematica: Step 2 . I am using Mathematica 10. (I would write a comment ...
1
vote
0answers
21 views

How do I set a PlotStyle when plotting a Table of functions? [duplicate]

I want to plot several functions each with its own color. A MWE is as follows : Plot[{2 x, 3 x}, {x, 0, 1}, PlotStyle -> {Red, Green}] which works fine. Now, ...
-1
votes
1answer
38 views

ListLinePlot plots my table, but the table doesn't contain numerical values

I am trying to export a table of data to file, but the code does not appear to be returning numerical data even though ListLinePlot can plot it. Can you please ...
2
votes
5answers
119 views

Turning Pascal's Triangle 90 degrees counter clockwise

I have a function that returns a list containing sub-lists that have the numbers for each row in the list. (ex.{{1},{1,1},{1,2,1}}) If I was going to represent it regularly I would use table form and ...
0
votes
1answer
46 views

Using FindRoot in a Table of Iterations [closed]

So I have a tanh curve and a straight line that cross at the point: msol=FindRoot[Tanh[x] == (T/Tc03) x, {x, 1}] This gives me the roots that I need at a certain ...
12
votes
7answers
532 views

How to properly inject iterators into table? [duplicate]

Goofing off on a prior question, I was fiddling with other methods, which led me to the need to inject a constructed set of iterators into a table construct. Now, ...
0
votes
0answers
30 views

NDSolveValue:dsvar error in a system of non linear differential equations generated using a Table

I have a system of 4 non-linear differential equation, that I generate using Table command. On solving, I keep getting a dsvar error that is not going away. I debugged my code and figured it has to do ...
1
vote
1answer
27 views

Generation of list of values for small gap among values

I need to run a loop as Table[expr,{i,imin,imax,di}] where I want di to be as small as order of ...
1
vote
1answer
34 views

RecurrenceTable [closed]

I got an error saying ...
0
votes
1answer
45 views

Table yields unexpected result [duplicate]

I evaluated Table[#[[i]] &, {i, 1, 5}] and got ...
1
vote
1answer
30 views

Export nested list with complex structure

I have a list that looks like this l = {elem1, elem2, ...} Where elem_={t, {d1,d2,d3} } How can I export it? I tried ...
0
votes
2answers
46 views

Constructing a table from a constraint on another table

I have a 1000X6 table, where in each row the first three columns are dependent on the second three. I then make smaller tables of 1000X2 from these first three columns and basically ...
1
vote
2answers
61 views

how to remove Null's from output? [duplicate]

I'm a math enthusiast and I'm looking for examples of rare divisibilities, let's look at the following one: ...
0
votes
1answer
45 views

How to speed up ReplaceAll in Table?

I am writing a code which solve a list of equations and then create a Table with resulst of equation solving. In applications where I use this code, I create a bunch of equations and my computations ...
0
votes
2answers
62 views

Function that creates a table from two lists

I have two lists shown below: list1 = {(0,0,0,0),(0,0,0,1),(0,0,1,0),...,(1,1,1,1)} list2 = {1,5,5,5,...,5} How can I construct a function that outputs a table similar to this: $$\begin{array}{c|c} ...
0
votes
1answer
42 views

Why Table is not giving me the same sequence for eigenvalues of matrix

Let consider a matrix and evaluate the time dependent eigenvalues M[t_]:={{Sin[t],Cos[t]},{t,t*t}}; e1[t_]:= Eigenvalues[M[t]] Now If I evaluate ...
0
votes
2answers
45 views

Table results within loops

I have the following code. ...
1
vote
2answers
65 views

Center column heading in TableForm

I have a TableForm as follows: ...
1
vote
2answers
49 views

Arrange Grid of Table elements horizontally [closed]

I have a Table consisting of an independent variable and two functions. I want to output it like this: ...
0
votes
0answers
59 views

Appending elements to a list in parallel table

Is there any way to store values in a list that is being computed in parallel? For example, if ParallelTable is computing some ...
0
votes
1answer
62 views

Plotting results of a NSolve problem

I am calculating, numerically, the zeros of a determinant. a1 and a2 are constants, q is a parameter. I would like to vary q and find the roots w as a function of q and plot roots w vs. q. All ...
2
votes
1answer
41 views

Export as Table with alignment?

I have a table in Mathematica as a list of lists. How to export the table, and force Mathematica to insert as many spaces as needed between columns so that columns are aligned? For example, ...
0
votes
0answers
67 views

Meshing of a cube

I want to mesh a cube and what I use is ToElementMesh[Cuboid[ {-1, -1, -1}, {1, 1, 1}]]. This creates a regular grid of the cube. Is there a way to specify that ...
1
vote
0answers
17 views

How to specify alignment of columns when exporting a table using Export, and how to use spaces instead of tabs?

I have a table in list representation. How can I export it, specifying that some columns must be right-aligned and others left-aligned? Morevoer, columns should be space-separated (with an appropriate ...
0
votes
2answers
94 views

How to generate logarithmic/ Trigonometric tables in mathematica

I was looking for ways to create logarithmic / trigonometric tables in Mathematica. And printing them for use . Here the tables should be like standard log tables with mean differences column . I ...
0
votes
1answer
64 views

How to sample only odd numbers in the domain of a table for list plot [closed]

The following code samples $k$ points around a circle at integer values starting from $0$: ListPlot[Table[{2 Sin[(2*y/x)*π*n] , 2 Cos[(2*y/x)*π*n}], {n, 0, k}] I ...
1
vote
0answers
53 views

Problem with ParallelTable?

I am trying to numerically solve Bloch equations using Euler's method. My code is the following ...
0
votes
1answer
55 views

Why does `Table` returns values but `Plot` doesn't plot them?

The Table function works fine and return a nice list of values ...
2
votes
3answers
103 views

How to automatically make the maximum of each row in a table(grid) bold?

TableForm[Table[i/j + 4*Boole[j > i] // N, {i, 3}, {j, 4}], TableHeadings -> {{"Row1", "Row2", "Row3"}, {"Col1", "Col2", "Col3", "Col4"}}] Produces the ...
1
vote
1answer
66 views

How to convert cumulative to incremental for plot

Trying to show a plot of a power function $Y = a X^b$, where $Y$ is cumulative cost and $X$ is cumulative shipments where we'd like to see the incremental cost. For $X_1$ the cost is $Y_1$, for $X2$ ...
2
votes
2answers
141 views

How to produce a table with column and row headers included?

I have searched and have not found a solution. n = Table[i^2 + j*3, {i, 3}, {j, 7}] // TableForm Export["stuck.xls", n] ...
1
vote
1answer
112 views

Table shifting bug?

I use Mathematica for calculation of coordinates in format {x[t], y[t]}. For this purpose, I wrote Module T...
1
vote
0answers
40 views

How to substitute inside Hold? How to create table of summation (with Sigma symbol) expressions? [duplicate]

I would like to create table of summation expressions, which are not evaluated, but summation limits are substituted. I can't accomplish this so far. If I write I get summation expanded. If I ...
18
votes
2answers
293 views
23
votes
3answers
2k views

Generating 250 random points crashes the kernel, but not 249

Consider the following function, which generates uniformly random points on the surface of the 2-sphere: ...
0
votes
1answer
86 views

Plot a table of functions with different color [duplicate]

I have a function with two independent variables: SNR[t_, f_] := 20 Log10[1/(2 Pi f t)] And I have a list for "t" ...
3
votes
1answer
94 views

Print array with indices

Is there a single function that prints an array together with the indices? I know how to achieve this with Grid[{Range[n],array},Frame->All], but I vaguely ...
0
votes
0answers
29 views

List of symbol names using `SymbolName` [duplicate]

With a list of variables, I want to create a table with variable names as TableHeadings. I am trying to get the list of variable names using the following code: ...
1
vote
2answers
127 views

GPA calculation from a set of randomly generated marks obtained

So, this is a homework question posed by my teacher: "A student has 10 courses. Find the ceiling value of the obtained marks and corresponding grade according to the following data Print the result ...
4
votes
1answer
135 views
0
votes
0answers
35 views

How to avoid losing the done part of `Table` when stopping it? [duplicate]

Often, when I use Table, it takes too long to compute all the elements of the would-be table. I then stop it with Alt+. and ...
1
vote
0answers
48 views

Problem with ParallelTable in using externaly defined iterator [closed]

In order to reduce my computation time, I'm making some tests with parallel computation, especially with ParallelTable. Here is a simple code : ...
1
vote
2answers
88 views

Strange behaviour of TableForm

...
1
vote
1answer
101 views

Constructing new lists using Table

I tried to modify an old notebook to show a spreadsheet style output in a table. I am not getting any errors when it runs, so I think the data I am gathering and the new variables I added, ...
-2
votes
1answer
57 views

Create a matrix by crossing a list

I've a list L of elements. I want to create a matrix by laying each elements of L in both rows and columns where each ...
1
vote
2answers
54 views

How to Hold/Defer only one (only given) level?

Is it possible to Hold/Defer some of outer expressions, having evaluates inner ones? For example, I want to prepare a table of expression values, like this ...
1
vote
0answers
55 views

Is the “Table” function limited in number of elements it can compute? [closed]

i tried using "Table" to compute a list of 400,000 strings but the output takes forever to get. I have tried with smaller size of about 100 and i get results as fast as possible. But when the number ...
0
votes
1answer
108 views

Block matrix and calculate it's inverse

How to define the following block matrix $$ A=\begin{bmatrix} H-G_1 & -G_1 & \ldots & -G_1 \\ -G_2 & H-G_2 & \ldots & -G_2 \\ \vdots & \ldots & \vdots & \vdots ...
2
votes
1answer
53 views

Plot several columns of table with variable number of columns and display the legend accordingly

I use this command to plot all values from the 1st column of Table "results" against all values from the 2nd column: ListLinePlot[{results[[All, {1, 2}]]} Now, ...
0
votes
1answer
49 views

If works wrongly under Table or Sum [closed]

Table[If[i != j, 1/(j - i), 0], {i, 1, 5}] This line returns in Mathematica 9 the table with equations where i is still symbolic! Thanks for help! Sergey