We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
170 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 $ $ ...
6
votes
0answers
245 views

How to create a prefix code

I am trying to create a demonstration of shannon code in mathematica. Given a list of lengths (l1, l2,..lk) I need to create a list of binary lists (or list of ...
3
votes
0answers
48 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 <...
2
votes
0answers
59 views

Unexpected result given by Sum

Consider the following (minimal?) working example: ...
2
votes
0answers
34 views

NMinimize with real solutions, problem in the resolution and criteria for other ways to solve equations

I have multiple parts in my question. You are welcome to answer to any of them :) Part 1 : I have 3 equations $p(x_1,y_1)=p(x_2,y_2),\mu_x(x_1,y_1)=\mu_x(x_2,y_2),\mu_y(x_1,y_1)=\mu_y(x_2,y_2)$. I'm ...
2
votes
1answer
43 views

How to preserve multirows when exporting TableForm results?

I've created a table of data in Mathematica with a list of values with each data point. So for example, I have the following dummy data: ...
2
votes
0answers
72 views

ListDensityPlot using

I have two data tables with identical parts along the vertical axis. For example: ...
2
votes
0answers
65 views

How can I deal with a SystemException?

I have a list of functions that are being evaluated, using ParallelTable[], and continue to get the error message: ...
2
votes
0answers
928 views

Speed differences between Table, Replace, Array, Map, and AssociationMap

EDIT: Actually, it looks like part of this is bogus—Array doesn't actually work on this input (I'm often a little shaky on what kind of input, exactly, works for ...
2
votes
0answers
48 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 ...
2
votes
0answers
180 views

Problem with ParallelTable?

I am trying to numerically solve Bloch equations using Euler's method. My code is the following ...
2
votes
0answers
585 views

How could I make an Excel-like table?

I am looking to build a simple Excel type of a table with four columns. I have spent some time researching Mathematica documentation, but haven't come across a way to implement that. Here is a ...
2
votes
0answers
147 views

correct usage of ParallelTable

I am trying to parallelize my script. Here is a MWE of how I have done it: ...
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 ...
1
vote
0answers
226 views

Using Table within Table

I have a large set of data which is composed of lists of lists of lists. I have to sort through the data, applying functions to lists that fit my selection rules. Because of these lists within lists, ...
1
vote
0answers
68 views

Iterate over values in a table only if they are in a region

I made some pretty simple PDE's in non-square regions, and I am attempting to output the data (t, x, y, funcval) out to a .csv file (I know, terrible format for this, but it was a requirement for the ...
1
vote
0answers
335 views

Accessing table extension in FITS file

I have a FITS file here that has no image but simply has a binary table in its extension. I have tried using Import["file","Tabledata"] but it returns an empty ...
1
vote
0answers
160 views

Assigning Values of Indexed Variables to Arrays

New to mma. I have assigned the results of using Solve to solve 5 variables to 5 indices of a new variable: ...
1
vote
0answers
92 views

calculate new table from values of old table and find fit model curve

I'm new to mathematica and I'm struggling to figure this out. I have a file with 6 space separated numerical data columns. Column 3 and 4 are the x and y values of the real data, column 5 and 6 are ...
1
vote
0answers
34 views

Partial Sum of Binary Sequence not Working

I have the following code: ...
1
vote
0answers
65 views

NIntegration and DSolve with same variable

I need to solve this problem: Then follows the code, with: ...
1
vote
0answers
46 views

Defining an object which is function in some variables and tensor in some other indices

I am trying to define an object which function in some variable and tensor in other indices. My attempt at it was: ...
1
vote
0answers
75 views

Make a table of changes in US coinage

I thought of an innovative use of Mathematica/Alpha that I think Stephen Wolfram would really love, but I can't figure out how to get it to work. The idea is to make a table that would chart the ...
1
vote
0answers
306 views

Generating a variable size table one element at a time

I can produce a variable size list of strings like AACBBAABC with this code: ...
1
vote
0answers
481 views

Making simultaneous equation solving more efficient

I am trying to solve a system of several simultaneous equations that have been generated by a series of modules and functions, using this module: ...
0
votes
0answers
27 views

Simulating a function with no closed form solution

So I am trying to simulate a function in 3d. Suppose our function looks like this: f=k*r*a I am interested in simulating the numerical values of k when r is ...
0
votes
1answer
58 views

Making a table excluding a region; conditional iteration

I just would like to create the table with the following condition; selecting the points outside a circle Norm[{x, y}] > 0.5 I used ...
0
votes
0answers
26 views

How to count n observations/ rows in a table?

What is the expression to count the rows/ observations? This is how I entered data: ...
0
votes
0answers
42 views

Iterating over a list and defining the range accordingly

I have the following list, l = {{"a", "b"}, {"a", "b"}, {"c", "d"}, {"e", "f"}, {"e", "f"}, {"x", "y", "z"}, {"m", "n", "o"}, {"p", "q", "s"}}; for each ...
0
votes
0answers
24 views

Contour 3DPlot of four sets of data

I have four different functions that can generate four different datasets. I want to be able to generate a single 3D contour of the result. I've tried many things and basically I am not getting ...
0
votes
0answers
22 views

Error in plot - normalize

Generated equations using this: ...
0
votes
0answers
53 views

How to get this table of `(x-a)*(x-b)`, where `a > b`?

I am trying get a table of (x-a)*(x-b), where a > b. I tried ...
0
votes
0answers
46 views

Another tool besides Conjugate

Do you know any way besides Conjugate to normalize the following symmetric function and calculate "ParSym"? I realized that ...
0
votes
0answers
28 views

How to parallelize the following table

Consider a table: ...
0
votes
2answers
50 views

Problems with creating a matrix with functions

I have a function which gives me all the coordinates of a certain bloc in a lattice (with the help of another function for rows and columns): ...
0
votes
1answer
83 views

How to make split tables in Join?

I have a command Table0[mS_]:=Table[{mS*i,i^2},{i,1,20}] Table1=Join[Table0[1],Table0[2],Table0[3]] When calling Table1[[1]] I expect to get the element Table0[1]...
0
votes
1answer
95 views

Breaking up a list of lists

I have a list of values stored in SortedLat, where SortedLat is a list of 74 sublists, and each sublist has its first element be a string. As you can see I am trying to create the first column for a ...
0
votes
0answers
31 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
0answers
25 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
54 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: ...
0
votes
0answers
26 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
56 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
0answers
38 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 ...
0
votes
0answers
24 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 ...
0
votes
0answers
68 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 ...
0
votes
0answers
75 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 ...
0
votes
0answers
28 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 ...
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: ...
0
votes
0answers
155 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] ...
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: ...