Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
20 views

Listing Permutations of Two Elements

Let $S_{k}^{(n)}$ be the set of all possible lists of length $n$ containing exactly $k$-times $\sigma$ and $(n-k)$-times $\Delta$. For instance, $S_{2}^{(4)}=\bigl\{\{\sigma,\sigma,\Delta,\Delta\},\{\...
2
votes
0answers
56 views

ListDensityPlot using

I have two data tables with identical parts along the vertical axis. For example: ...
0
votes
1answer
40 views

Getting named functions from an sequence of parameter values applied to a parametric function [on hold]

The general question is how can I loop on names and indices? An example: I have pfun = ParametricNDSolveValue[{y'[t] == a y[t], y[0] == b}, y, {t, 0, 10}, {a,b}] ...
0
votes
0answers
23 views

Table with two functions to output matrix with values

So I have a wing modeled as an .STL and I am analyzing its structure so I need its cross sectional area and moment of inertia at points along its span. I do this by moving an infinite plane across the ...
0
votes
1answer
55 views

Creating a table with a set length

I would like to create a list/table/array that starts at 0 and goes up by increments of 0.25 until it reaches a set length "l". I have tried the Table function, but the imax will vary depending on ...
0
votes
0answers
20 views

Gradient method in vectorfield on surface table does not work, module is slow

For teaching purposes I want to generate a vectorfield on a surface an visualize the path of the gradient method. The surface and the gradient are generated by ...
0
votes
0answers
26 views

Extracting data from flattened table and using it to perform arithematic operation

I am not sure about how I can explain this problem clearly. Nevertheless, let me try it. I need to solve a sixth order equation given by the expression: $1 + {\frac{2\kappa-1}{2\kappa-3}\frac{Nezero}...
0
votes
0answers
49 views

Creating a dynamic list with different subset lengths in while loop

I am trying to create 2D list or table in a while loop as below: ...
-2
votes
1answer
47 views

Show tabulated equations in matrix form [closed]

How do i put last equation, eqm[x, t, k, n] into matrix form? I want every row to end with == 0 ...
0
votes
1answer
56 views

Generate a “real time” table of data from an animation

I have a basic animation of a parametric plot: ...
1
vote
2answers
37 views

Apply conditional styling to the rows of a table

This is a follow-on from a similar question here. If I already have a table of data, say ...
0
votes
1answer
41 views
0
votes
1answer
30 views

find in list almost equal elements, make new list correspond to position or some list

I have a list of elements called q and wish to compute Total Multiplicity of each element, and put these values in the list tm. ...
3
votes
2answers
74 views

How to create table with 2D function values?

Consider some function f[x,y]. I want to create a table in the form table = {{x1,y1,f[x1,y1]},{x1,y2,f[x1,y2]},...,{x2,y1,f[x2,y1]},{x2,y2,f[x2,y2]},...}, where $...
2
votes
1answer
72 views

Why is Mathematica “de-evaluating” my expressions when I try to generate a Table? [duplicate]

I am attempting to plot a combination of StreamPlot and ParametricPlot that is a function of a parameter. When using Manipulate or Animate, the evaluation is slow but the graphs are outputted as ...
2
votes
1answer
125 views

Problems with plot interference of two waves

I'm trying to make motion plot interference of two waves i used lines to represent amplitude and wave envelope separately. This works for the traveling waves, but no the interfering wave. i'm ...
0
votes
0answers
18 views

Simulates Timeseries with Table

i need your help again. I would like to calculate EW[k_] with EW[1],EW[2] and EW[3]. My code works only for one calculation from EW (in the code below it is EW[1]) but i would like to calculate the ...
0
votes
1answer
46 views

Problem with {table values} when plotting

I have a Piecewise and Nintegrate both defined with NumericQ. The NIntegrate part of the Piecewise operates when first inserted into a working program, but not when called from inside a table. Their ...
0
votes
3answers
86 views

How can I join several plots a single figure using a Table?

It is possible to joint different kind of plot using a Table, The idea is to have a single plot. I have been trying using Show function y. But I can not get it. So It is possible also to add ...
2
votes
2answers
53 views

Table counting divisors

I have a simple table that I can't quite make work. Columns are as follows A function returning 1 if x divides ...
0
votes
1answer
59 views

Narrowing down loop to only print if certain conditions are satisfied

I have the following code Table[Riffle[Mod[{i, DivisorSigma[1, 7 i + 4]}, 47], Sqrt[7 i + 4]], {i, 200}] and it works perfectly fine. There are two modifications ...
2
votes
2answers
57 views
1
vote
2answers
53 views

Table Command with multiple Variables

I am new to Mathematica, so I'm not sure about the ins and outs of what's possible and what is not. I am trying to view the eigenvalues of multiple matrices at once. In particular, this matrix: $$\...
1
vote
1answer
34 views

Table of numbers and their divisors

I want to create a table of random numbers and their divisors. The random numbers are given by ...
0
votes
1answer
53 views

Printing all elements of table in Fortran form

Let's say I have some Table object. The elements of this table are accessed as Table[[i,j,k]]. For each element in the array I ...
7
votes
2answers
357 views

Formatting a table to look nice

my current code is: ...
1
vote
0answers
32 views

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

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
36 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
117 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
105 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 ...
2
votes
1answer
51 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
41 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
87 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
vote
2answers
63 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
43 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
77 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
32 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
49 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
40 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
425 views

Generate this sequence more efficiently

Is there a more effecient way to generate the sequence shown below. ...
6
votes
1answer
215 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
22 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
141 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
76 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
74 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
63 views

How to show the whole table

I have this code ...
1
vote
1answer
105 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
70 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 ...