Warning phase plane plots

조회 수: 6 (최근 30일)
LALE ASIK
LALE ASIK 2017년 10월 26일
편집: LALE ASIK 2018년 4월 7일
I am trying to plot a phase plane. But the code gives me the following warning:
Warning: Function failed to evaluate on array inputs; vectorizing the function may speed up its evaluation and avoid the need to loop over array elements.
> In ezplotfeval (line 56)
In ezplot>ezimplicit (line 257)
In ezplot (line 153)
In phaseplane (line 9)
The corresponding line in the code:
f_handle=ezplot(@(x,y)myfunction(x,y,K),[0 K 0 0.025/0.03]);
set(f_handle,'color','k','linestyle','-','linewidth',2);
hold on
Could you please help me to fix it?

채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 26일
z = b .* x .* (1 - x./(min(K,(P-theta.*y)./q))) - (c.*x) ./ (a+x) .* y;
z = e .* min(1,((P-theta.*y) ./ x) ./ theta) .* (c .* x) ./ (a+x) .* y - d .* y;
  댓글 수: 1
LALE ASIK
LALE ASIK 2017년 10월 26일
Thank you so much for your help.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by