Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [table]

Questions on the use of the Table[] command and other functionality related to lists. Use [tag:matrix] for matrix algebra and related methods, and [tag:list-manipulation] for questions about transforming or operating on existing lists.

1
vote
0answers
27 views

How can I export the values of both the dependent variable and the independent variable? [on hold]

This is the first time I am using Mathematica. I am trying to calculate the bandgap of a solid using the following script. ...
2
votes
2answers
33 views

Format a table column with superscript and operator

I have two alternative forms of a simple table, both of which have problems: ...
2
votes
2answers
101 views

How does one plot a 3 dimensional table of numbers?

I've just spent three hours searching the documentation and this website for an answer. I have a rank 3 tensor: t = {{{1, 2}, {3, 4}}, {{5, 6}, {7, 8}}} How ...
3
votes
4answers
98 views

Generating $n \times n \times \cdots \times n$ table

Suppose I want to write a function that automatically create a $n \times n \times \cdots \times n$ (all $D$ $n$'s) multiplication table with $D$ as the argument of the function, which is automatically ...
1
vote
1answer
29 views

Improving efficency in generating Tables with large numbers of values

I'm simulating some transient data for fast Fourier transform -- on the order of 20 million points. Understandably MM takes a while to do this. Are the any techniques in table generation optimisation ...
0
votes
1answer
28 views

Combine list with table

I want to create a three-column table that has a list for one column. But when I do this, using TableForm with TableHeadings, ...
1
vote
1answer
52 views

Creating a diagonal matrix from from a vector [closed]

I try to create a function that create a diagonal matrix in which the diagonal are: $\qquad 1,a,a^2, \cdots,a^n,1,a,a^2, \cdots,a^n$ Here is my attempt: ...
-1
votes
0answers
55 views

Why does not Mathematica run the entire script?

I am trying to make Mathematica calculate a table for me using this code: ...
1
vote
2answers
53 views

Having problems with using TableForm to format a table

I want to make a table of various values of the logistic curve given by l[x_] := 1/(1 + E^((-k)*(x - \[Alpha]))). In basic form, this is dead easy. However, I want ...
1
vote
1answer
39 views

Make a plot from data [closed]

I have two variables $x$ and $y$ satisfying, say, $y^2 + x < 1$, such that $0 \le x < 1$ and $0\le y<1$. I want to plot all the points satisfying the inequality $y^2 + x < 1$ and also show ...
0
votes
1answer
50 views

multiply elements of two different lists

I have a data file which I have imported and form a table. list1 = Flatten[Table[{relic[[i]]}, {i, 1, 5}], 1] the output looks like this ...
0
votes
0answers
30 views

Interpolation of a list defined on a region

I have a three-dimensional table (each element has the form { x, y, f( x, y ) }), and the x, y coordinates spans a region of a parallelogram. If I do a list contour plot of the data, it gives the ...
3
votes
1answer
48 views

Is it possible to make double tables more efficiently coded? [closed]

I am wondering about the following situation, suppose I have Table[Table[x^Length[l[[j]][[i]]], {i, Length[l[[1]]]}] // Total, {j, Length[l]}]; where ...
1
vote
1answer
39 views

Precalculating ThreeJSymbols to make my program faster

Does anybody have an idea what is the best way to pre-calculate the ThreeJSymbols in order to use them in a loop? (I want to make my program work faster that is why ...
4
votes
3answers
422 views

Generate this sequence more efficiently

Is there a more effecient way to generate the sequence shown below. ...
6
votes
1answer
207 views

How do I include table headings in Excel data?

I am trying to generate a table with Manipulate and export the results into an MS Excel file. Fortunately, after a lot of troubles, I was able to get the file ...
0
votes
0answers
20 views

Using Table to determine Plotrange coordinates

Hello I have a more pragmatic problem. Let's start from the beginning so everyone knows what I mean. I have a listplot such that ...
3
votes
3answers
125 views

ListPlot from Table of single input x and many y(x) output

Suppose have data for several x and several y(x), for example mydata = {{11, 1.1, 2.3, 2.4}, {12, 1.3, 1.4, 1.9}, {13, 1.8, 1.7, 1.2}} mydata // MatrixForm So ...
0
votes
1answer
51 views

Table in NIntegrate

I have an integral that I want to evaluate it once and store its values in a table so that I don't run the integration each time that I want to plot it. Its form is ...
2
votes
1answer
68 views

Is it possible to enter tabular data in Mathematica? [duplicate]

I want to enter table of X and Y values then plot them. I don't want to enter brackets and or commas. Can I prepare grid for myself and them fill it with data in Mathematica, like in Excel? I found ...
0
votes
1answer
24 views

Looping Constructs to create a set of varibale matrices

I am trying to create an $ n \times n $ matrix, which has cosine terms. I would like to select the values of the arguments of cosine terms from a random set of values that I have generated. My code ...
0
votes
2answers
59 views

How to show the whole table

I have this code ...
1
vote
1answer
45 views

Inverting the order of a Table - Prime numbers

In a previous post I asked for the possibility to have a binary image of the coprimality inside the natural numbers. The following code ...
1
vote
1answer
68 views

Problem displaying Killing equations

What I'm trying to do is to compute the Killing equations and then solve them using DSolve to determine their solutions. I have a problem understanding where my Mathematica program doesn't work ...
0
votes
1answer
76 views

How to get Lissajous curve like the following gif [duplicate]

parameter equation $x= \sin(m t)$, $y= \sin (nt)$,(fix $m=13$, $n=18$ not to change) I need the picture show the generation of the curve.(start from one point to the final curve like you draw it ...
2
votes
2answers
95 views

Kronecker product $ n $ matrices

I would like to write code to realize the Kronecker Product of $ n $ matrices, for instance when $ n=4 $ and the matrices are Pauli matrices ...
1
vote
1answer
94 views

Use iterator outside of iteration

I want to Map something that is depending on an iterator from the outside of e.g. Table into the procedure. What would be the ...
1
vote
2answers
56 views

Extracting first 2 elements of table

I have a table in Mathematica as follows: table1 = {{2,4,51,2017},{20,5,21,2018},{300,1,22,2016}} From this, I was wondering how one could extract only the first ...
1
vote
2answers
44 views

Storing values of NDSolve or NIntegrate

I am looking in plotting some solutions of NDSolve or NIntegrate but they take too much time to run, thus it is not handy if I ...
1
vote
1answer
77 views

Is there any way to save time using of “Cross” or “Table”?

I need to solve a equation by NDSlove, so I write the equation first, but it takes me a lot of time. The follow is my code ...
1
vote
1answer
42 views

How can I know the value of parameters?

In the the attached image I plot two function for the parameter $a1, a2, a4$. I take $a2$ as particular value, $a1$ as discrete set and $a4$ continuous value. In the plot how can i recognize for which ...
3
votes
2answers
119 views

How to generate a “value-frequency” table with random numbers?

I want to create a "value-frequency" table from the following expression. Counts[Sort[RandomInteger[{1, 5}, 500]]] // TableForm The generated table should be in ...
1
vote
2answers
72 views

how can I make a grid? [closed]

I would like to make a grid for x between 0 to 1 and use following Table ...
0
votes
1answer
116 views

Why can”t I get a smooth curve?

I used "Table" to calculate and plot the following complicated function. First, we choose an initial value for $G$ and other parameters, but at later times $G$ changes with function $I_a$. ...
4
votes
4answers
147 views

Linearly change the step size in a table

I am trying to create a table of points, where the size of the step would change linearly from a certain value to another. Bellow is a simple code to demonstrate a table of points with a constant step ...
4
votes
4answers
300 views

Table $ 2n-1 $ from $ n=2 $ to $ 50 $ except when $ n=3m-1 $ [duplicate]

How to Table $ 2n-1 $ for $ n $ from $ 2 $ to $ 50 $, except when $ n=3m-1 $ for another integer $ m $?
0
votes
0answers
61 views

4D Table, Slider limitation and ploting ListSliceContourPlot3D

This is kinda a follow up to a previous plot where I was trying to visualize a 4D data, T(x,y,z,t) (3D space and time of temperature). SliceContourPlot3D. I wanted to move away from evaluating the ...
2
votes
1answer
387 views

Converting built-in Mathematica symbol to C [closed]

I am trying to convert my Mathematica code to C since it can sometimes takes the Mathematica code quite a while to execute since the arrival times lists are hundreds of thousands of counts long, and ...
1
vote
2answers
103 views
0
votes
2answers
58 views

Create and manipulate list with variable length?

Is there a way to create and manipulate a function of a sum of arbitrary length? Specifically, I'd like to create a function like the following: ...
0
votes
1answer
46 views

Can i plot different parameter differential equation phase plane in a line?

In order to compare with different parameter,can i use StreamPlot plot them in a line, for example: $$\dot{x} = Ax$$ When $A = [-1,0;0,-2]$, i can use code as ...
1
vote
1answer
54 views

Table of function derivative evaluation

I want to create a table with numerical values of a function derivative by using the following code: ...
1
vote
1answer
85 views

How to construct addition and multiplication table for finite field?

For example, choose $p(X) = X^4 + X + 1$, how to construct addition and multiplication tables for $\mathbb{F}_{2}[X] \mod{X^4 + X + 1} $ ?
1
vote
1answer
65 views

Pick the solutions that satisfy certain conditions

I have a large system of ODEs, and I find a large number of steady-state solutions. But many of them do not satisfy the condition that all the variables must have ...
1
vote
2answers
94 views

How to plot table with two variables?

in my script,i have defined function current(cur), which is a function of two variables resistance(res) and time(tim). Now what i need that for my function to pick a resistance value(which is a vector)...
3
votes
0answers
40 views

How can I prevent ParallelTable[] from freezing?

I have spent some time trying to figure this out. I have a function that appears to be the reason my program is freezing. I am using both MemoryConstrained[] and <...
0
votes
0answers
34 views

Using table and piecewise function together

I am trying to define an equation set, in which the function is very similar to a square wave, but instead, it is defined piecewise at each interval. Now I need to evaluate the equation at each ...
2
votes
1answer
58 views

Making a table of results from SystemModelSimulate [closed]

I am trying to simulate a model in SystemModeler from Mathematica 11.3. I wish to simulate this model for various parameter values and make a table of the output data. To attempt this I do the ...
0
votes
0answers
26 views

Generating of table of list of values of function is stucked while the function itself works fine

I have the following strange situation. I generate a table Table1[a_,b_]:=Table[{a, b,0.01*i,function[a,b,0.01*i]},{i,0,20,1}] Here ...