Hello, I wrote a code, but it didn't run. I think loops are wrong.I want to solve those functions and then to plot them in loglog graphs.What are my mistakes? Is there anyone who can help me?Please help.
%Source Function
fc=0.4; Ohm=20; x=0.01:0.01:50; for i=1,5000; for j=1,5000; for k=1,5000; x=f(i); x=f(j); x=f(k); S(i)=Ohm/(1+((f(i)\fc)^2)); S(j)=(Ohm*((2*pi*fc)^2))/(1+((fc/f(j))^2)*(2*pi*f(j))); S(k)=(Ohm*((2*pi*fc)^2))/(1+((fc/f(k))^2)); end endend loglog(S(i)); loglog(S(j)); loglog(S(k)); grid on;
Best Answer