I have a For loop (with i as a counter), which calculates different values (y1, y2, y3,...) as a function of the variable x.
How can I create a table/matrix which contains i lines, each line containing the variable x_i and the values (y1_i, y2_i, y3_i,...)?
|
|
|||||||
|
|
Try using
And if
Here |
|||
|
|
|
Without having your for loop in hand, you could also do something like the following:
Or you could combine the a call to |
||||
|
|
|
Now this is the kind of question that can be answered in a million ways:
All returning:
|
|||
|
|
|
Typically the best way to accumulate results from an arbitrary process is to use I picked four functions of
If you can formulate your code to do a single
Brett Champion recommended that I show the two argument from of
(See this answer for a powerful use of the multiple tag form.) Here is an example using this in place of
Also, with a few exceptions it is better to avoid |
|||||||||||
|



