plot nonlinear equation in x y coordinate
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Mark
el 22 de Oct. de 2021
Respondida: Star Strider
el 22 de Oct. de 2021
clc
clear
syms x y
SL_Ts=1800;
SL_Cm=1400;
ST_Ts=40;
ST_Cm=230;
SLT=100;
k=((x^2/(SL_Ts^2))-((x*y)/(SL_Ts^2))+((y^2)/(ST_Ts^2)))-1;
x_value=0:1800;
0 comentarios
Respuesta aceptada
Star Strider
el 22 de Oct. de 2021
Try something like this —
syms x y
SL_Ts=1800;
SL_Cm=1400;
ST_Ts=40;
ST_Cm=230;
SLT=100;
k=((x^2/(SL_Ts^2))-((x*y)/(SL_Ts^2))+((y^2)/(ST_Ts^2)))-1;
y = solve(k,y)
x_value=0:1800;
yfcn = matlabFunction(y)
figure
plot(x_value, yfcn(x_value))
grid
axis([0 2000 -50 50])
Experiment to get different results.
.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements 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!