What is wrong with this code?
이전 댓글 표시
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
jake carl
2020년 7월 10일
Image Analyst
2020년 7월 10일
You forgot to give us the error -- ALL the red text. Jake, make it easy for people to help you, not hard.
jake carl
2020년 7월 10일
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.
카테고리
도움말 센터 및 File Exchange에서 Time-Domain Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!