Alternative data for the loop

조회 수: 11 (최근 30일)
KDRA
KDRA 2018년 10월 10일
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.
  1. measurement_1
  2. measurement 1 * measurement 2
  3. measurement 1 / measurement 3
  4. 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.
  1. measurement 1_new * sqrt(measurement 5)
  2. 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개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by