Alternative data for the loop
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I am writing a script for data analysis and I am not sure how to design the loop. I have XLM document with results of different measurements where first measurement is the base and every next measurement is using this data. e.g.
- measurement_1
- measurement 1 * measurement 2
- measurement 1 / measurement 3
- measurement 4 - measurement 1 etc. etc.
It may happen that the base measurement has to be repeated in the middle of my test (let's call it measurement 1_new) from now on, for the following measurements (and respective calculation) I want to use measurement 1_new. I.e.
- measurement 1_new * sqrt(measurement 5)
- measurement 6 / sqrt(measurement 1_new)
I was thinking about looping it before each and every measurement to check if measurement 1_new exists but I feel there must be simpler way to do this. Do note that I want to use measurement 1_new only from the moment when it exists, not for all previous measurements. The measurements will be saved in the exact order.
I would appreciate some good advices:)
K.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!