Error using for loop with transfer function

8 ビュー (過去 30 日間)
Dacha Millo
Dacha Millo 2019 年 8 月 29 日
コメント済み: Dacha Millo 2019 年 8 月 29 日
syms eta;
num=[25];
for eta=0:0.2:1
{
den=[1 2*eta*5 0];
G=tf(num,den);
H=feedback(G,1);
i=1;
cell{i}={H}
i++;
}
end;
Error: File: Q1_practise.m Line: 6 Column: 8
The expression to the left of the equals sign is not a valid target for an
assignment.

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 8 月 29 日
num=25;
i=1;
cell_data=cell(1,6);
for eta=0:0.2:1
den=[1 2*eta*5 0];
G=tf(num,den);
H=feedback(G,1);
cell_data{i}={H};
i=i+1;
end
cell_data
Is this??
  1 件のコメント
Dacha Millo
Dacha Millo 2019 年 8 月 29 日
Got it. Thanks

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by