How to create a for loop excluding data frames from a matrix with several data frames?

I have a matrix with several frames (at least 3) and chanels. I want to create a for loop to analyze the data starting from the second frame (so jumping the first one). I have before used something like this to read the data on channel 7:
for j = 1:NAME_DATA000_wave_data.frames;
torque=NAME_DATA000_wave_data.values(:,7,j);
calibration=100;
torque=torqueV*calibration;
end
This loop of course reads all frames available and I want to read everthing starting from the second frame.

3 件のコメント

Les Beckham
Les Beckham 2022 年 2 月 25 日
Change your for loop to start at 2 instead of 1?
Maria Venegas
Maria Venegas 2022 年 2 月 26 日
Yes...the question is how?
did you try this ? and please attach "NAME_DATA000_wave_data"
for j = 2:NAME_DATA000_wave_data.frames;
torque=NAME_DATA000_wave_data.values(:,7,j);
calibration=100;
torque=torqueV*calibration;
end

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Parallel Server についてさらに検索

製品

リリース

R2020b

タグ

質問済み:

2022 年 2 月 25 日

コメント済み:

2022 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by