# 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.

897 questions
Filter by
Sorted by
Tagged with
63 views

...
136 views

### Sensitivity analysis of parameter on eigenvalues of predator-prey model

I am trying to do a sensitivity analysis of the parameter g on the eigenvalues of this simple predator-prey Lotka Volterra model. I know that this code is entirely ...
47 views

### Generating a list of two-dim. points from list of higher-dim. ones

I have a table of lists, ie. s = { {1, 2, 4}, {7, 11}, {3, 4, 12} }. From this table, I would like to create the table of points ...
69 views

### How to fix the Y-axis and normalize density?

I want to plot a density curve but when I draw the y-axis not getting to 1 (as normalized) ...
57 views

### How to do Interpolation to this function after given b this values

\[Chi][b_] := (Z/k)*NIntegrate[Subscript[f, pp1][q]*Subscript[F, pp1][q]*BesselJ[0, q*b]*q, {q, 0, b}]; bList = Table[b, {b, 0, 5.1 , 0.05}] where: Z = 6; k=1....
74 views

### Question about Working with Lists / Tables

I have a data point set embedded in a manipulate. dtpts1a={{X,Y},{X,Y},{X,Y},{X,Y},{X,Y},{X,Y},{X,Y}, and so on and so forth, continuing} How do I alter, how do I change the magnitude of each ...
124 views

### Why Does Parallelization Not Speed Up these Seemingly Well-Parallelizable, Simple Functions?

Original Example Consider function f, a parallelized version fPar, and a coarsest-grained parallelized version ...
48 views

### Use of a function inside of a table

I have a function that I want to generate a square matrix whose entries are run from 1,...,n and whose i,jth entry is f(i,j) for some function f. My code that I have right now is ...
44 views

### Table does not give out any output while Animate or Manipulate work [closed]

I was playing with this program and I noticed that I can use Manipulate or Animate, but Table...
106 views

### Create a list that always ends with two 1's but starts with a variable amount of 0's

I want to create a variable list like this: {0, 0, ..., 0, 0, 1, 1} This list would grow list this, starting with no 0's, but then gaining more 0's to the left the ...
40 views

### Loop in opposite directions with Table

If one has only initial data f[x2, x1] for x1 = 0 and x2 = ...
30 views

### why mathematica Holds the Solve on the set of equations in the diagonal a matrix?

Say I have a simple function F[x_, y_, z_, r_, a_, b_, c_, d_] := (1 - a + b - (b/3) (c x + d (y + z + r))) x And I want to solve the set of equations given by: <...
35 views

### How to use ReplaceAll iteratively over a list of lists?

I want to build a matrix J for each of the solutions of an equation. And each solution is also a set of 3 variables (x,y,z). In ...
81 views

### Choose the number of kernels used by ParallelTable

By default, on my system, ParallelTable uses 4 kernels. Is it possible to change the number of kernels used, for example using only 3 instead of 4?
59 views

### How to create 2d ListPlot with distinct colors?

I have a data set of type (x,y,E), where E can assume 4 distinct configurations (0,0), (1,0), (0,1) or (1,1). I want to create a 2D plot using ListPlot considering the rules: If E=(0,0), then print ...
32 views

### Building an array of T NxM matrices where one item in each matrix changes

As I do not use Mathematica often enough, I am a bit rusty. I need to work on an array of T matrices and each of those NxM matrices has the following pattern:  \begin{equation} A(t):= \left( ...
43 views

### Making Table with nested SetDelay functions is very slow

I am trying to write a function which returns a list of lists of eigenenergies available for a quantum well. The code is here: ...
77 views

### Labeling elements of a table

I have a table of the form(the table is very long, i put an example): tab1={{{1,10,30},{1,20,54},{1,30,65}},{{2,10,35},{2,20,65},{2,30,70}}} How can I give ...
40 views

### How to define a cube unit based on Graphics3D [duplicate]

I would like to ask,how can we draw 50 spheres of radius 0.1 (randomly) in the unit cube. This is my first try, ...
49 views

### ParametricNDSolve with a delay differential equation

I have a set of delay differential equations that I solve numerically from 0 < t < T. y[T] is then used as the initial ...
72 views

### Writing a solution dependent coefficient in a PDE using Do & Table command

The goal is to find the displacement response of the following equation with the updating coefficient on the time and disp domain called difusion coeficient or Epsilon. For this purpose, Epsilon is ...
32 views

### lookup table data with interpolation from reference list

I have data as: ...
36 views

### Filtering solutions using the Select function [closed]

I have a certain code that output in the following format: {{a1,b1},{a2,b2},{a3,b3},...,{an,bn}} Where $a_1$ and $b_1$ etc are numbers. Now I want to filter ...
32 views

### A problem with nested tables and parallelization

My code contains the structure Table[....,Table[....,{m1,1,N}],{m2,1,M}] and I would like to use ParallelTable to improve timing. Empirically, I know that ...
51 views

### Do with variables from a table

I want to perform a Do command with n variables, where n is set elsewhere in my code. How do ...
24 views

### How to represent functions values Table in a form of columns with arguments and values?

Evaluating MatrixForm[Table[10 i + j, {i, 4}, {j, 3}]] gives me a 4x3 matrix, as seen in example, representing function's values. How can I transform this table in ...
34 views

### How to make a table from specific range in an array

I would like to make a table of values from some data in the middle of an array of data. As seen bellow: ...
75 views

### Local variables in sums and tables - best practices?

Stumbled on Local variables when defining function in Mathematica in math.SE and decided to ask it here. Apologies if it is a duplicate - the only really relevant question with a detailed answer I ...
13 views

### ProgressIndicator with Monitor seems to update to 0 and then back to correct number

I am monitoring a large function that reads in filenames, performs operations and saves multiple files to different folders. This works without issue, but I like to be able to monitor in case it ...
65 views

### How can I convert this Dataset to List

I'm very new to Mathematica, I'm having the following dataset structure : I want to get data in the following way so that I plot it to TimeSeries using joined/left[1/0] as v and ts as time: ...
37 views

### RSolveValue, Table and general programming

If I have the following code: ...
71 views

### Creating table that omits certain values

Say I want to run a function of the form Table[i*j,{i,-5,5},{j,-5,5}] but I want to omit all the values of $|i|\leq1$ and $|j|\leq1$. In other words, how do I ...
137 views

### FindRoot::lstol error

I'm getting the message: FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the ...
37 views

### Function definitions not being applied when using replacements or lists with fractional steps

I am attempting to use Table to evaluate a function at specific values. The function is first defined. ...
45 views

### ListPoinPlot3D works but ListPlot3D does not

I don't understand what is going on. The same table, plotted with the tool ListPointPlot3D gives the desired output. But plotted with ...
52 views

### Problem in table [duplicate]

NDSolve[{t,Evaluate[{ode}\.Sol]},{t,0,10,1}]//TableForm After executing this with appropriate equations I get solution in the tabular form but when I try to ...
28 views

### Map of an expression in a 3D grid is very slow

I have a quite large expression as function of $R$, $\phi$ and $Z$ as you can see: ...
39 views

### ListContourPlot table problems

I have a table of the form xrange={0.1,1,0.05} yrange={3000,15000,100} tab1=Table[{x,y,z[x][y]},{x,xrange},{y,yrange}] where z[x][y] comes from previous ...
76 views

### Generating and analyzing an Interpolating function from many interpolating functions: speed up

Is there a clever way to speed up this code? ...
41 views

### Table with function evaluated at a list [closed]

Supposed I have a function f[a_] = a^2; alist = {1, 10, 100, 1000}; I want to make a table of the values of alist and ...
77 views

### Table of Dynamic Disks

I'm trying to create a dynamic interface to generate disks depending on 3 parameters : x-coordinate, y-coordinate and radius. The disks are generated as soon as the "export" button is pressed. I'm ...
56 views

### Table of Variables within Manipulate

Given a certain number n, I want to define n controls within Manipulate with the correct ...
55 views

### How to set same Variables with different Values [closed]

I have a pipe with different insulation sections and a fluid flowing through. I need to calculate the fluid Temperature at the end of every section, to estimate the temperature for the next section. I ...
51 views

### How do I apply assumptions to a table of functions

I have a table, really its a tensor but anyways I would like to apply an assumption to it, i.e. 1 - 2 phi[t,x,y,z] == 1 and have it print the tensor after it has ...
139 views

### Merge list repeating elements

Suppose I have a list with mixed elements {{{a,b},{c,d}},{{e,f},{h,i}}} Is there a way so that I can reshuffle the elements to get the following? ...
132 views

### Removing duplicate rows and appending from a table of lists

For the table x with three lists per row: ...
42 views

### How to show the value of $x$-axis based on $y$-axis and saved into table?

I have a code here to calculate the value of y-axis of each partition based on mx. What I would like to do next is: To show the value of each x-axis from the ...
878 views

### Generating list with short code

I need to get this list {1,0,2,1,3,2,4,3,5,4,6,5,7,6,8,7,9,8} with a very small code (< 30 characters) using Table and List functions. On each step, either it - subtracts 1 or - adds 2 I ...