I'm currently working on this assignment:
I found the transfer function to be:
I am now on part (f) of the problem:
I am quite unsure of how to go about solving this in Matlab. I have the following code:
I then get an error that says:
??? Error using ==> ezplot>ezparam at 392
Cannot plot parametrized surfaces. Try ezsurf.
Error in ==> ezplot at 163
hp = ezparam(cax,f{1},f{2},vars,labels,args{2:end});
Error in ==> sym.ezplot at 50
h = ezplot(char(f),char(y));
Right now, I'm really unsure of how to fix this and my assignment is due in a few hours. Could someone please help me asap? Any help is greatly appreciated.
I found the transfer function to be:
I am now on part (f) of the problem:
I am quite unsure of how to go about solving this in Matlab. I have the following code:
Rich (BB code):
syms s t R real C real;
R = 3  sqrt(2);
H = (1+R)/(3+s*(4*C+R*C)+s^2*C^2);
in1 = heaviside(t)  heaviside(t8*pi/C);
IN = laplace(in1,t,s);
OUT1 = IN*H;
out1 = ilaplace(OUT1,s,t)*heaviside(t+eps);
ezplot(subs(out1,R,sqrt(2)),[1/25]),hold on, legend('R=sqrt(2)'), xlabel('t'),ylabel('out(t)'),title('Response for in1(t)')
in2 = cos(3*C*t)*in1;
IN2 = laplace(in2,t,s);
OUT2 = IN*H;
out2 = ilaplace(OUT2,s,t)*heaviside(t+eps);
ezplot(subs(out2,R,1.414),[1/25]),hold on, legend('R=sqrt(2)'), xlabel('t'),ylabel('out(t)'),title('Response for in2(t)')
??? Error using ==> ezplot>ezparam at 392
Cannot plot parametrized surfaces. Try ezsurf.
Error in ==> ezplot at 163
hp = ezparam(cax,f{1},f{2},vars,labels,args{2:end});
Error in ==> sym.ezplot at 50
h = ezplot(char(f),char(y));
Right now, I'm really unsure of how to fix this and my assignment is due in a few hours. Could someone please help me asap? Any help is greatly appreciated.
Attachments

2.3 KB Views: 71