I have a problem when I convert a char into a variable name
이전 댓글 표시
num = [1];
dem = [1 1 0 0];
T=[0.1,0.5,2,3,4,20]
R=["A","B","C","D","E","F"]
for i=1:length(T)
for j=1:length(R)
R(j) = tf(num ,dem,'Inputdelay',T(i)); %% error
end
for plotId = 1 : 6
subplot(3,2,plotId), bode(R(j))
grid on;
title(['delay=',num2str(T(plotId))])
end
end
댓글 수: 1
What is the expected result of allocating a tf model object (or genss model object or uss model object) to a string array?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Interactive and Graphical Tuning에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!