PLOT log scale in y cordinate

2 visualizaciones (últimos 30 días)
Mustafa Alhandhali
Mustafa Alhandhali el 27 de Abr. de 2019
Comentada: Star Strider el 27 de Abr. de 2019
i have this equation and i want ger the relation between Xss and W
-3751474221736597/(2621440*(17179869184*W^2 - 336973579165665))
my code is
syms W
W=0:200:2000;
figure
semilogy(W,Xss)
but this error is appear
Error using semilogy
A numeric or double convertible argument is expected

Respuestas (1)

Star Strider
Star Strider el 27 de Abr. de 2019
Try this (using the fplot function):
syms W
Xss = -3751474221736597/(2621440*(17179869184*W^2 - 336973579165665));
figure
fplot(Xss, [0 2000])
set(gca, 'YScale','log')
  2 comentarios
Mustafa Alhandhali
Mustafa Alhandhali el 27 de Abr. de 2019
i tried
it does not work with me
Error in fplot (line 60)
fun = fcnchk(fun);
Star Strider
Star Strider el 27 de Abr. de 2019
It ran for me as posted without error.
Post your code so I can see what the problem is.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by