iterating A Function
1 view (last 30 days)
Hey all, quick question:
Say I have some data:
And an equation:
and I want to solve for R for each of the rows of data, how would I create an iteration for that? I can call the data from a .csv file, and output the results as well, but I've never set up an iteration myself. As a side note, the data may have x variables (columns) and I may need to iterate n number of times.
Benjamin Schwabe on 15 Feb 2012
I'm not sure if that's really what you want to have:
Define a matrix
Results for your axample are:
If you want to use a csv file, please have a look at the command csvread.
I hope this answers your question.