フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Hi, I'm kind of new to matlab, I would like to turn this into a for loop. How should i do it?

1 回表示 (過去 30 日間)
Morten Jørgensen
Morten Jørgensen 2018 年 11 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi, I'm kind of new to matlab, I would like to turn this into a for loop. How should i do it?
c1 =EMGrsmpl(step1{1,end-10},100);
c1(:, 2)=EMGrsmpl(step1{1,end- 9},100);
c1(:, 3)=EMGrsmpl(step1{1,end- 8},100);
c1(:, 4)=EMGrsmpl(step1{1,end- 7},100);
c1(:, 5)=EMGrsmpl(step1{1,end- 6},100);
c1(:, 6)=EMGrsmpl(step1{1,end- 5},100);
c1(:, 7)=EMGrsmpl(step1{1,end- 4},100);
c1(:, 8)=EMGrsmpl(step1{1,end- 3},100);
c1(:, 9)=EMGrsmpl(step1{1,end- 2},100);
c1(:,10)=EMGrsmpl(step1{1,end- 1},100);
  1 件のコメント
dpb
dpb 2018 年 11 月 22 日
What is step1 here? What does step1{1,end-10} return?
You likely don't need any loops at all but can use Matlab vector addressing syntax but need the details to write specific code.

回答 (1 件)

Rik
Rik 2018 年 11 月 22 日
c1 = EMGrsmpl(step1{1,end-10},100);
c1(1,10)=0;%extend
for k=2:10
c1(:,k) = EMGrsmpl(step1{1,end-11+k},100);
end

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by