Error using phase (line 15) Not enough input arguments.

2 visualizaciones (últimos 30 días)
Sha Ka
Sha Ka el 18 de Jun. de 2014
Comentada: Star Strider el 19 de Jun. de 2014
>> f=10:1:100000; % f is the frequency varying from 10 to 100000 in steps of 1hz
G=2483.71.*(2.*pi.*f.*10).*((2.*pi.*f*100).*(10^18))/(((60.7.*2.*pi.*f.*100).*(10^-9))+1).*(((6.07.*2.*pi*f.*10).*(10^-9))+1);
faxis=0.000001*f;
plot(faxis,f,'w',f,G,'r')
xlabel('Frequency, rad/s'), ylabel('Gain, V/V')
title('Frequency Response Plots')
subplot(2,1,2);
>> semilogx(w, phase);
Error using phase (line 15)
Not enough input arguments.
Hey everyone, how are you? I am having some trouble with this code. I am trying to make the argument that 'w' is my variable and for it to be displayed in the graph, but it is not showing up in the window when I graph it. Instead I get this error, has anyone else had trouble with this?!
Please help me :(
Thank you!
  13 comentarios
Sha Ka
Sha Ka el 18 de Jun. de 2014
Btw Star Strider, I didn't get a chance to give you credit to your answer, if you would like just leave an answer below so I can rate that you helped me :)
Star Strider
Star Strider el 19 de Jun. de 2014
Thank you! I genuinely appreciate your concern and your support for my efforts!
I put my latest comment as an Answer (since it seemed to be the one of most relevance).

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 19 de Jun. de 2014
w = ?
phase = ?

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by