Alternative data for the loop
10 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!