What is wrong with this code?
11 ビュー (過去 30 日間)
古いコメントを表示
What is wrong with this code?
clc;
clear all;
close all;
n1=1;n2=25; den = [1 6 25];
step =[n1,den];
title('Transfer function when numerator = 1')
figure, step=[n2,den];
title('Standard transfer function')
1 件のコメント
madhan ravi
2020 年 7 月 10 日
Original question:
What is wrong with this code?
clc;
clear all;
close all;
n1=1;n2=25; den = [1 6 25];
step =[n1,den];
title('Transfer function when numerator = 1')
figure, step=[n2,den];
title('Standard transfer function')
回答 (1 件)
madhan ravi
2020 年 7 月 9 日
clear all % never name a variable step
n1=1;
n2=25;
den = [1 6 25];
Tf =tf(n1,den);
figure(1)
step(Tf)
title('Transfer function when numerator = 1')
figure(2), Tf1=tf(n2,den);
step(Tf1)
title('Standard transfer function')
4 件のコメント
madhan ravi
2020 年 7 月 10 日
編集済み: madhan ravi
2020 年 7 月 10 日
Nope , that’s not the entire error message. Either you do don’t Control System Toolbox or a valid license for it or you created a file named tf.m if so remove it from the path or rename it.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!