The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
47 views

How can I manipulate this list?

I performed a loop with Table where I solve a system of 4 equations that depends on two parameters: eta and p. I create two lists for each parameter as follows: ...
1
vote
5answers
93 views
1
vote
3answers
47 views

Delete permutations of subtables in a table [closed]

I've got a table of tables: $A=\{\{a,b\},\{b,a\},...,\{a,b,c,d,e\},\{e,d,c,a,b\},...\}$. How do I do to remove backward duplicates, or more generally permutations of duplicates in the table? For ...
0
votes
1answer
32 views

Create a Table depending of two variables [closed]

I tried to create a table depending of two variables as: W= Table[{G[[i]], G[[j]]}, {i, 1, 3}, {j, 1, 3}] I wanted it to look like ...
0
votes
0answers
29 views

RunScheduledTask hide typing data table

I created a task that removes itself when an external variable x,is changed: ...
1
vote
1answer
87 views

Summing terms in Table

I have a table that looks like Table[m, {k, 10}, {j, k}, {i, j}] where, m is a square matrix that depends on the indices $i, ...
2
votes
2answers
57 views

How to apply list of values to a list of functions

I have the following: first= {1+a,2+a,3+a,4+a} and a list t={0,1,2,3} I want to evaluate the first element of "first" at ...
1
vote
1answer
50 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
22 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
41 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
123 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
48 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
540 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
28 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
36 views

RecurrenceTable [closed]

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

Table yields unexpected result [duplicate]

I evaluated Table[#[[i]] &, {i, 1, 5}] and got ...
1
vote
1answer
33 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
47 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
71 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
49 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
65 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
47 views

Table results within loops

I have the following code. ...
1
vote
2answers
71 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
62 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
64 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
42 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
75 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
102 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
66 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
57 views

Problem with ParallelTable?

I am trying to numerically solve Bloch equations using Euler's method. My code is the following ...
0
votes
1answer
58 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
105 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
68 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
144 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
113 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
43 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
299 views
24
votes
3answers
2k views

Generating 250 random points crashes the kernel, but not 249

Fixed in 10.1.0. Consider the following function, which generates uniformly random points on the surface of the 2-sphere: ...
0
votes
1answer
105 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
95 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
138 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
144 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
89 views

Strange behaviour of TableForm

...