Error using for loop with transfer function
8 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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??
更多回答(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!