Hi i am getting an error in this MATLAB code and im not sure whats wrong with it. %define verialbe lm=0.01; Rm=0.05; Kt=1.2; Kb=4.0; B=0.25; J=10.0;
%coeff of denominator a0=((Rm/Kt)+Kb);
a1=(lm*B+Rm*J)/Kt;
a2=((lm*J)/Kt);
%define numerator and demenator num=[1]; den=[a2 a1 a0];
%define TF Gopen=tf(num,den)
% step(Gopen)
The error is coming from line 24 which is Gopen=tf(num,den) so can anyone help me.
ANSWER
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
I cannot duplicate the error you are getting. When I run: %define variable
lm=0.01; Rm=0.05; Kt=1.2; Kb=4.0; B=0.25; J=10.0;
%coeff of denominator
a0=((Rm/Kt)+Kb);
a1=(lm*B+Rm*J)/Kt;
a2=((lm*J)/Kt);
%define numerator and denominator
num=[1];
den=[a2 a1 a0];
%define TF
Gopen=tf(num,den)
produces:
SEE COMPLETE ANSWER CLICK THE LINK
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
I cannot duplicate the error you are getting.
When I run:
%define variable lm=0.01; Rm=0.05; Kt=1.2; Kb=4.0; B=0.25; J=10.0; %coeff of denominator a0=((Rm/Kt)+Kb); a1=(lm*B+Rm*J)/Kt; a2=((lm*J)/Kt); %define numerator and denominator num=[1]; den=[a2 a1 a0]; %define TF Gopen=tf(num,den)
produces:
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment