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.

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

Help debugging NDSolve with both a For loop and Table

I am trying to run an ode system for a set number of time steps, take the size at the final time step for select equations and use these to calculate initial conditions for the next set of time steps. ...
2
votes
3answers
132 views

How can I use the Table command to produce a Table of specific values from a 2 variables function?

I want to use the "Table" command to produce a Table of specific values from the following 2 variables function : ...
1
vote
1answer
162 views

How can I select a part of a table? [closed]

I have a table, for example given by Table[{{1,8},{3,9},{5,10},{6,30},{10,70}}]. How can I select a part of this table so that the result takes the form ...
2
votes
1answer
42 views

Attempting to fill a table with the number of elements in each bin and make a table with the elements in the bins?

I am having some difficulty trying to fill a table with the number of elements in each bin while also making a table that holds the elements in each bin. Okay, let me go over my thoughts: So I have ...
0
votes
1answer
94 views

Plotting in Table[…] [closed]

I would like to plot a table with functions and their plots. However, something of the type Table[{SomeFunction[x,n],Plot[%,{x,1,2}]},{n,1,3}] seems not to ...
4
votes
1answer
41 views

performance / computing time optimization for dealing with huge tables

I'm currently coding a Finite Element Method (FEM) program in Mathematica. For the so called stiffness matrix I need a very large table preferably around the size of 10^6 x 10^6 cells that are all ...
6
votes
4answers
471 views

Applying loop functions with input list of iterators

Given an iterator, I am trying to generate a table of all possible pairs of values. The form of the iterator I'd like fixed, because I want to run other loops with it as well. The closest to what I ...
3
votes
1answer
106 views

How to create a flat Table

Is there any function to directly create a flat list of expressions as a function of multiple index variables, in other words a flat version of Table. What I mean is to have for example ...
0
votes
0answers
42 views

Save WhenEvent result in a table

I have a set of coupled differential equations of functions which evolve (increase) monotonically: ...
6
votes
3answers
218 views

How to create a variable List

I need, given "n", create a list {a1,a2,...,an}. For example: Given n=3, the list that must be created is composed by the symbolic variables {a1,a2,a3}. Sorry if this question is simple. Does anybody ...
5
votes
3answers
695 views

How can I do a plot in real time as data is created?

First, I have this two functions fun1[x_] = Assuming[x > 0 && x ≤ 1, 0.5((Log[x/2])^2 - (ArcTanh[Sqrt[1 - x^2]])^2)] and ...
3
votes
1answer
77 views

Speeding up filling a matrix when approximating a double integral

I want to approximate a double integral in the process of solving a partial-integro differential equation, to then put it, next to the differential part. The integral is (after some simplifications): \...
1
vote
2answers
62 views

How to make a table of pairs (plot, matrix)?

I am generating a random matrix $F$ and then plotting norm of the matrices $E+Ft$, representing them as a table. But I also want to print the matrix $F$ near every plot. If I remove the semicolon from ...
0
votes
1answer
35 views

Altering the Values of Global Lists Within Tables

Say I have some lists: list1 = {4} list2 = {2} list3 = {6} list4 = {9} list5 = {7}. I want to alter them in a table like so: ...
1
vote
1answer
52 views

Tooltip does not work with Plot and Table [closed]

Suppose one has some values and some names: values = {1.5, 2.2, 5.5}; names = {"label1", "label2", "label3"}; We now define linear functions using these ...
3
votes
1answer
90 views

Function with domain from data table

I have a Table with elements {{i1, j1, k1},{i2, j2, k2},...} I wanted to store the values of ...
0
votes
0answers
154 views

3D plot from lists

I'm trying to generate a 3D plot of some functions a,b,c, under certain inequality constraints. I have earlier defined the functions a[x,y,z],b[x,y,z],c[x,y,z] ...
1
vote
2answers
43 views

Storing one of two outputs of For loop

I have a set of data: ...
2
votes
1answer
87 views

Using Table to make a set of replacement rules for functions

I have a 3x3 matrix of functions. It looks like ...
3
votes
1answer
121 views

Progress bar / counter for multi-row table with 2 variables

I have a table that takes a long time to calculate because f[x] is quite a complicated function: ...
0
votes
1answer
63 views

Export data of a function of 3 variables

I have a function like this ...
1
vote
1answer
57 views

Generating a table of gradients

I have some function (say, $f(x,y)=x^2+y$) I want to take the gradient of. I then want to make a table of $|\nabla f|$ evaluated at different values of $x$ and $y$. Here's the code I wrote: ...
0
votes
1answer
68 views

Getting the index of maximum while generating the values with table

Say I am tabling the values of a two variable function using a list of indexes (which I can't assume to be ordered), I'd like to return the index (or the list of indexes) which yield the maximum value(...
2
votes
2answers
60 views

Table and evaluation order

I thought Table should not evaluate the inner code until it inserts the value. I'm confused by test1[3]="a"; test2[4]="b"; Table[DownValues[i],{i,{test1,test2}}] ...
0
votes
2answers
71 views

Using Table to build a matrix

I am completely new to Mathematics. I am doing an exercise which requires me to use Table to make a $10 \times 10$ matrix with numbers $1,2,...,10$ on the diagonal ...
0
votes
0answers
59 views

Iterating an iterator using Table

basically, I have a 4 dimensional matrix and I am looking to apply the following function: ...
0
votes
1answer
47 views

Use the Table command with growing steps. Is it possible? [duplicate]

Is it possible to use the Table function with growing steps? In other words, as the function proceeds it takes larger steps. The intention is to have a set of data with unequal distribution in which ...
1
vote
1answer
50 views

Evaluate function using list

I'm trying to evaluate the first derivative of the period-3 logistic map for the fixed points in the period 3 window at a specific value of r. I define the period-3 map: ...
1
vote
2answers
79 views

How do I pull a multiple pieces of data from a while loop and put into a table

I am wanting to pull multiple pieces of data from a while loop and put it in a list. The example I have added below is a table with inputted data that I found. Im pretty sure the syntax is unrelated ...
0
votes
0answers
303 views

ParametricPlot - Several curves by different parameters

I am trying to plot a set of curves f(a,b,t) along t with a,b = -10, -9, ..., 9, 10. I can use Manipulate to draw 1 curve, and then change the curve shape by ...
0
votes
3answers
92 views

How to make a table, but leave out the diagonal elements? [duplicate]

I'm making a table called ac as shown below. I know that every diagonal expression as[[1,1]], ...
1
vote
3answers
126 views

How to generate flattened tables?

Table[f[i,j], {i, 1, 10}, {j, 1, 10} generates a list of lists. Sometimes I just want to obtain a single list that contains ...
1
vote
0answers
30 views

How to access inserted data from table? [closed]

I'm inserting a number into the first column of a table, but when I call the table again, the number is not there anymore. Can someone explain to me what I'm doing wrong here? ...
0
votes
1answer
45 views

Plot for a list of parameters [closed]

I found the following possibility to plot a function for a table of parameters: Plot[Evaluate@Table[a^2 + parameter, {parameter, 0, 10, 2.5}], {a, -10, 10}] ...
1
vote
0answers
60 views

How to plot data from table dynamically, without knowing how many columns are there?

I'm trying to read coordinates at certain times of Planets and Plot the orbit into a graph. For this example I'm doing this for eight planets, some coordinates from a table of some timesteps of the ...
5
votes
1answer
205 views

Color in TableForm

Happy Easter! How can I change the background color of one specific row in TableForm? Or can I even do it ? for instance: ...
0
votes
1answer
48 views

How to create multiple plots by looping through variables

Consider the following MWE: ...
6
votes
0answers
169 views

Undocumented TableView function

Seeking information on undocumented function TableView. Exempli gratia, tab=Table[Table[If[Mod[i,Prime[j]]==1,1,0],{i,1,10}],{j,1,2}] tab//TableView $ $ ...
1
vote
1answer
57 views

Weird Behavior of Table and Sequence

I'm writing a function that constructs a multidimensional array (that is, nested lists) using Table. The dimension of the array varies according to the argument to ...
2
votes
2answers
110 views

Computing the elements of many 4 x 4 matrices using Table [closed]

...
0
votes
1answer
43 views

Why do this give an empty “{}”? [closed]

Table[x/(x + 1), {x, 2.5, 1.999, 0.000001}] Hello, i am trying to make a table of values for this function in steps of 0.000001, but once i use Shift+Enter, the result is just an empty interval "{}". ...
0
votes
1answer
527 views

Making a table of solutions from NSolve or Solve

How can I generate a table of solutions to an equation such as this: Solve[{a^m+b==c,b-m==a+Sqrt[n]},{a,b}] for some given values for $n$ and $m$.
1
vote
3answers
113 views

Generating a table of solutions for an equation

I am trying to solve numerically an equation and generate some results. I use the following code ...
0
votes
1answer
51 views

How to add a column after ordering a data table?

I have a question about the following code: ...
1
vote
1answer
38 views

Shrinkage caused by TableForm

Writing: ...
2
votes
2answers
77 views

Replace doesn't return expected output within Table

...
1
vote
1answer
89 views

Line wrapping in a PDF document

Writing: list = ConstantArray[0, {2, 35}]; doc = CreateDocument[ExpressionCell[TableForm[list, TableSpacing -> {2, 2}], "Output"]]; Export["test.pdf", doc]; ...
0
votes
0answers
50 views

TableForm in CreateDocument [duplicate]

Writing: ...
0
votes
1answer
40 views

smart way of defining a table

This is possibly a dumb question: inside a function, I first define Rho = Table[xrho[m], {m, 1, k}] then populate it using ...