The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
27 views

Eliminate some value from a matrix [duplicate]

I have a function that return a table consisting of a 2D points. These points are either {x,y} or {0,0} ...
0
votes
1answer
124 views

Getting mesage: Set::setps assignment is not a symbol

Please, tell me what is the issue with the following code? Dimensions[Subscript[R, 2]] {201, 161, 53} ...
1
vote
2answers
447 views

Create simple table with function of column values

I just want to create a simple table: Three input columns, one output column Call the inputs {x,y,z}, each can take values ...
1
vote
2answers
91 views

How do I assign specific data points in an array to a new array?

I am trying to learn how to script/program in mathematica and I am retyping some simple C and FORTRAN programs into Mathematica as a way to learn. I am writing a Monte Carlo code to calculate the ...
0
votes
2answers
113 views

Put results in multiple columns for comparison

One thing I would like to do in many instances is arrange input/output in columns for comparison. I expect that I need to use Grid to do this, but have not been ...
1
vote
1answer
404 views

Can Table be used inside Manipulate?

EDIT: CHanged the code. Please try again t see if it works well on our PCs. I am creating a simple Manipulate[] notebook. However when I place Table[] in the code, like: ...
3
votes
1answer
220 views

Cartesian product of sets

I have two types of sets, one of them is a list of points of the form $\{t_{k}\}$ and the other one is an interval of the form $[a,b]$. And my custom set consists of these type of sets and I need to ...
1
vote
2answers
158 views

Taking a percentage of data from a list or a table

I have a list of data and for the calculation I only need the a of portion of the data. I know that Take[data, {1,100}], for example, is taking line 1 to 100 of the ...
10
votes
5answers
387 views

Relational joining of tables

A common thing to want to do with data is to combine it (at least I thought this was a common thing). In SQL there is the idea of table joins "select id,v1,v2 from A,B where A.id=B.id" kind of thing. ...
2
votes
2answers
203 views

Deleting parts of groups that do not have equal dates

Find the intersection of dates within the pair and remove the other dates & corresponding prices. Also keep the list in same format as it currently is in. Let me explain: Each stock has closing ...
8
votes
1answer
161 views

Why is building a table of function values so much slower than just plotting the function?

Here is a function that take some time to evaluate: n = 1000; coeffs = RandomVariate[NormalDistribution[], n]; f[x_] := Sum[coeffs[[k]] Sin[k x]/k, {k, 1, n}]; ...
0
votes
0answers
146 views

Efficiently tabulating system of coupled ODEs for NDSolve

I am solving a (large) system of second order coupled nonlinear ODEs. I have been increasing the number of dependent variables present in the system slowly, to converge on more physically realistic ...
2
votes
1answer
147 views

How to parallel this nested table efficiently?

I have an 8 core CPU and want to parallel evaluate the following nested Table Table[Table[expr[i,j], {i,1,10}], {j,1,4}] But ...
0
votes
0answers
64 views

GUIKit`Private`Script appended to expression when I try to update list through Table Widget

I am trying to update a list every time a value in a Table Widget is changed. My list has to be made from expressions and not strings since I am doing some symbolic calculations each time the table ...
2
votes
1answer
149 views

Errors when using ParallelTable inside a package

I'm developing a package that contains a function that requires evaluation of an expensive Table, so I use ParallelTable ...
1
vote
2answers
130 views

Creating a Table of Items for GIF creation

I want to create a table as shown below so that the steps from the first item to the second item, and the second item to the third item, etc. can be animated. I am not at liberty to post tested ...
5
votes
4answers
174 views

Creating simple table

How do I create a table like this? I find it very hard to create the zero-row and zero-column. Edit: I am looking for a solution where a formula eg. Table or something else is being used. I can ...
1
vote
1answer
303 views

How do I make a frequency table from a histogram (data set)?

I have a data set. ...
2
votes
2answers
270 views

How to export a table of complex numbers?

I'm having problems exporting a table of complex numbers. I have: ...
1
vote
2answers
103 views

Evaluation of elements in a list and then sorting them

This is probably a simple problem, but I'm having a lot of issues with it because I'm unfamiliar with Mathematica syntax. I have a list ...
1
vote
0answers
126 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
45 views

List elements and iterator name collision [duplicate]

Let there be two lists, exp = {{i, i}, {j, j}}; exp2 = {{r, r}, {o, o}}; and there are two Table commands to access them. Then, ...
1
vote
4answers
315 views

Recurrence relation in a table

I am trying to generate a list of x-values for a function using a module, where my x-value must increase by 'a' if the term ...
2
votes
2answers
160 views

Replacing all values in a table > $T$ [duplicate]

I want to generate a table of Euclidean distances from the points in a list to a given point, e.g.: ...
1
vote
1answer
202 views

Equating and solving equations that have been generated using table[]

I am in the process of trying to use Mathematica to find the coefficients of transmission and reflection for the wavefunction of a beam of particles tunnelling across any number of identical potential ...
0
votes
1answer
274 views

Function to marginalize a table over given parameters

Let us say I have generated a table tab with entries {p1,..,pd,chi2[p1,..,pd]} of dimension ...
1
vote
1answer
81 views
0
votes
1answer
73 views

How does PolarPlot render a nested list of functions?

I am getting unexpected plots from PolarPlot when I provide a list of functions that I generate using Table. I suspect the ...
0
votes
1answer
59 views

Function that displays set of integers fulfilling constrictions

I would like to make a function of three parameters $i$, $j$ and $k$ that displays a list of integers fulfilling some criteria. Specifically the set of integers is: $\zeta_{ijk} = ...
1
vote
1answer
207 views

plotting output from FindRoot

I am an R user and am totally new to Mathematica. I am trying to find the roots of a system of two equations over a series of paramter values and plot the results. I can do the computation but would ...
0
votes
1answer
82 views

order items of a table

I am trying to change order of a table. ...
2
votes
0answers
121 views

correct usage of ParallelTable

I am trying to parallelize my script. Here is a MWE of how I have done it: ...
0
votes
1answer
80 views

Sublist inside simple list

I have a doubt to confirm. Let there is a list f = {{l}, {c}, {d}, {e}, {1, 2, 3}, {3, 4, 5}} And I expect it to be traversed as a normal list which I can do ...
0
votes
2answers
156 views

Visualizing multi-state lattice from a data set

Is there any way to make Mathematica visualize a multistate square lattice? That is, I have a data set from a simulation that is x coloumns wide and y rows tall (just a simple .dat file), where each ...
2
votes
1answer
108 views

how to set initial conditions when solving recursive equation with tables

I am solving a recursive expression with ParallelTable. Here is a MWE showing how I do it, and how I set the initial condition: ...
5
votes
2answers
946 views

How to export results of an analysis in table format into MS word file

I'm working on a simulation study using Mathematica 8. At the end of the analysis I'll have a matrix of data containing my results (assume for three variables like x,y & z). I used these codes for ...
0
votes
1answer
200 views

Table of Polynomials [closed]

I made a function makePolynomial that creates a random Polynomial of a certain degree, e.g. 2+T+3T^2+8T^3-5T^4... now I ...
10
votes
6answers
672 views

Multiplying two dimensional data by a constant

I have a list of lists of the form: {{1, 2}, {2, 4}, {2, 8}} But I want to multiply only the second dimension of that data by a constant. I know I could do this ...
1
vote
2answers
1k views

Font size in PlotLegends, using Table to generate the list in the legend

I am currently trying to get to graph with several functions as below. My problem is that I cannot change the font size in the legend (authomatically generated numbers by "Table" function). This code ...
1
vote
1answer
165 views

Confused about Unevaluated

Why does Map[Unevaluated, Table[PauliMatrix[i], {i, 1, 3}] give {Unevaluated[{{0, 1}, {1, 0}}], Unevaluated[{{0, -I}, {I, 0}}], Unevaluated[{{1, 0}, {0, ...
3
votes
1answer
227 views

Create a table with inline conditions

I am trying to create a table with conditionals inline. For example, I'd like to create a 2 dimensional table like this: ...
2
votes
2answers
271 views

How to populate a table using a rule replacement

I am trying to populate the rows and columns of a table by using a rule replacment. To generate a table that looks like this For example Sc would be row 1, column 1. An example of a record looks ...
1
vote
1answer
133 views

direct assignment to the element in a Table

I have already asked a related question here why set values in this way doesn't work? But I think I have to write the question which I encountered explicitly? ...
17
votes
5answers
667 views

Instruct a Table to only evaluate until a condition is fulfilled

I am looking for the way of building a Table of pairs of numbers in a fast way. My true table evaluates huge functions, and I see no way and reason to show those cumbersome expressions here. Let us ...
2
votes
1answer
177 views

Find points on the surface of a Graphics3D object

If I have a Graphics3D object that was generated from manipulations to PolyhedronData rather than via an explicit equation, for example the Spikey (for which the entire code can be found here The ...
1
vote
3answers
160 views

iterate method to find roots

This code gives the roots (lambda-values) of eq1 by using iteration. ...
1
vote
3answers
147 views

How can I create a new tables out of a table and plot it

I have the following problem. I have a table, call it m, which is labelled by 3 indices (say i,j,k), each of them running from 1 up to 100. I would like to be able to construct a new table which would ...
1
vote
1answer
125 views

Table/Tree of values

My question: Is there a way to create a tree of values? Something like the output of the command TreeForm, but with values in the nodes? Why do I want this? I'm trying to do a complete program to ...
7
votes
3answers
240 views

How do I avoid scoping collisions of iterator variables?

Yesterday I had an issue that kept for quite a while. My code wasn't producing the right results. Now I know why and I am wondering how to avoid the issue in future. Consider the following code. ...
4
votes
4answers
720 views

How can I format a table to look nice?

I have this code, but i would like to see the results well formated, How can I obtain a well formatted data with aligment?, similar to this one insted what i obatin, you can see here Here is ...