Run a function a few times with always different data? How to?
Afficher commentaires plus anciens
Hi there,
I have the following problem: 1. I read a dataset (no headers or strings) from excel in by xlsread. The first column is a date and the following 5 columns are numerical. The dataset contains 5 rows. With xlsread I get a 5x6 matrix.
2. What I want to do now is to run my function with the data of the first row. Save the solution in a csv file. Then matlab should take the second row of my data, run the function again and save it in the same csv. This routine should be performed until matlab reaches row 5.
3. The csv file should always contain the date, followed by the obtained solution from the function. That must be done for each row.
For simplicity the function could be "func = a+b+c+d+e"
How can I do it?
Thanks in advance boulala
Réponse acceptée
Plus de réponses (1)
Catégories
En savoir plus sur Tables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!