Problem with plotting equation
10 ビュー (過去 30 日間)
古いコメントを表示
I have an implicit equation where x and y - variables. I want to make a graph, but ezplot function doesn't work. MATLAB writes: log(y/x)-STOI+(x/I_sat)*(y/x-1) cannot be plotted in the xy-plane. Also he offers to use fplot instead of ezplot, but it doesn't work correctly with fplot because, as far as I know, fplot doesn't work with implicit equations. So how can I solve this problem?
Also x should changes from 0 to 25. But I think it isn't a tough problem to solve.
6 件のコメント
Star Strider
2020 年 12 月 25 日
The error is:
Error using ezplot (line 176)
log(y/x)-STOI+(x/I_sat)*(y/x-1) cannot be plotted in the xy-plane.
however using ezsurf also errors:
Error using ezgraph3>ezfixfun (line 682)
The expression log(y/x)-STOI+(x/I_sat)*(y/x-1) must only have 2 symbolic variables
Nopte that ‘STOI’ is a (1x251) double vector, and ‘I_sat’ is a scalar.
What do you want to do?
採用された回答
Mischa Kim
2020 年 12 月 26 日
syms x y
f(x,y) = log(y/x)-(sigma_e/sigma_a)*(log(1+x*sigma_a*tau*lambda_0/(h*c))-log(1+(x*sigma_a*tau*lambda_0/(h*c))*exp(-alpha*L)))+(x/I_sat)*(y/x-1);
fimplicit(f)
Of course, you would have to assign values to the parameters.
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!