hello, this is my code wich i wrote using simulink :
RR=1.5;
RS=1.2; % according to the table on page 17 for a class
%myu0=4*pi*10^(-7);
LR=2;%(myu0*pi*l1*l2*Nr^2/8*g);
LS=1;%(myu0*pi*l1*l2*Ns^2/8*g);
TL=0.23;
J=0.005; % according to the table on page 17 for a class
np=4;
M=0.2;%(k*myu0*pi*l1*l2*Ns*Nr/8*g);
F=0.3;
sigma=(1-M^2/LR*LS);
Z=(1/sigma*LS);
myu=np*M/J*LR;
beta=(M/sigma*LR*LS);
heta=(RR/LR);
alfa=(M^2*RR/sigma*LR^2*LS + RS/sigma*LS);
tldivj=TL/J;
FdivJ=F/J;
sim ('motorproject1')
figure(1)
xlabel('t(sec)');
ylabel('teta(radian)');
plot(t,teta,'r')
grid on
figure(2)
xlabel('t(sec)');
ylabel('omega(radian/second)');
plot(t,omega,'b')
grid on
figure(3)
xlabel('t(sec)');
ylabel('psay_ra(henry)');
plot(t,psay_ra,'g')
grid on
figure(4)
xlabel('t(sec)');
ylabel('psay_rb(henry)');
plot(t,psay_rb,'y')
grid on
figure(5)
xlabel('t(sec)');
ylabel('isa1(amper)');
plot(t,isa1,'p')
grid on
figure(6)
xlabel('t(sec)');
ylabel('isb(amper)');
plot(t,isb,'b')
grid on
and it gives me an error : ??? Error using ==> plot
Conversion to double from struct is not possible.
Error in ==> programformotor at 26
plot(t,teta,'r')
and i dont know what to do about it, please help
thank you :)