Error using for loop with transfer function
조회 수: 6 (최근 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!