plotting non-linear equation

조회 수: 4 (최근 30일)
friet
friet 2018년 3월 17일
답변: Star Strider 2018년 3월 17일
Hello matlab,
I have this equation y*x= 1+ ln(y/x);
x varies from 0 to 1. Is there any way to plot x vs y?
Best

답변 (1개)

Star Strider
Star Strider 2018년 3월 17일
There is, if you have the Symbolic Math Toolbox:
syms x y
Eqn = y*x == 1 + log(y/x);
y = solve(Eqn, y);
figure(1)
fplot(real(y), [0 1], '-b')
hold on
fplot(imag(y), [0 1], '-r')
hold off
grid
set(gca, 'YScale','log')
xlabel('X')
ylabel('Y')
legend('Re\{y\}', 'Im\{y\}')
y =
-wrightOmega(- log(-1/x^2) - 1)/x

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by