Problem with plotting equation
이전 댓글 표시
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
George Bashkatov
2020년 12월 25일
Image Analyst
2020년 12월 25일
We can't run an image -- you'll need to give us the code. In the meantime, try using plot() instead of fplot().
George Bashkatov
2020년 12월 25일
편집: Image Analyst
2020년 12월 25일
Image Analyst
2020년 12월 25일
편집: Image Analyst
2020년 12월 25일
Sorry, I don't have the symbolic toolbox but it runs up until the syms line just fine. Do you plan on doing anything with any of those variables, like plotting them?
For the final two lines, can you tell us what range you expect x to cover, and what is the y value over that range of x values? How about this for x:
x = linspace(0, 25, length(STOI));
??? Now, what is y? You never define it anywhere.
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?
George Bashkatov
2020년 12월 25일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!