필터 지우기
필터 지우기

plot nonlinear equation in x y coordinate

조회 수: 1 (최근 30일)
Mark
Mark 2021년 10월 22일
답변: Star Strider 2021년 10월 22일
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;

채택된 답변

Star Strider
Star Strider 2021년 10월 22일
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)
y = 
x_value=0:1800;
yfcn = matlabFunction(y)
yfcn = function_handle with value:
@(x)[x./4.05e+3-sqrt(x.^2.*(-7.715096784026825e-10)+1.0./4.0e+2).*8.0e+2;x./4.05e+3+sqrt(x.^2.*(-7.715096784026825e-10)+1.0./4.0e+2).*8.0e+2]
figure
plot(x_value, yfcn(x_value))
grid
axis([0 2000 -50 50])
Experiment to get different results.
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by