Undefined function 'fimplicit' for input arguments of type 'sym'

조회 수: 3 (최근 30일)
VELMURUGAN
VELMURUGAN 2016년 12월 9일
댓글: huazai2020 2020년 7월 4일
The following example program is available in the 'Solve System of Algebraic Equations': (link: https://in.mathworks.com/help/symbolic/solve-a-system-of-algebraic-equations.html) But whenever run this program in matlab, it replies with an error "Undefined function 'fimplicit' for input arguments of type 'sym'." How to solve it???
syms x y eqn1 = sin(x)+cos(y) == 4/5; eqn2 = sin(x)*cos(y) == 1/10; a = axes; fimplicit(eqn1,[-2*pi 2*pi],'b'); hold on grid on fimplicit(eqn2,[-2*pi 2*pi],'m'); L = sym(-2*pi:pi/2:2*pi); a.XTick = double(L); a.YTick = double(L); M = arrayfun(@char, L, 'UniformOutput', false); a.XTickLabel = M; a.YTickLabel = M; title('Plot of System of Equations') legend('sin(x)+cos(y) == 4/5','sin(x)*cos(y) == 1/10', 'Location', 'best')
Please help me....

채택된 답변

Steven Lord
Steven Lord 2016년 12월 9일
That function was introduced in release R2016b of Symbolic Math Toolbox. You're probably using an earlier release. Looking at the "Functionality being removed or changed" table, in earlier releases you can use ezplot. Note, however, that the syntax of those two functions may be different and ezplot may not have all the functionality of fimplicit.
  댓글 수: 2
VELMURUGAN
VELMURUGAN 2016년 12월 10일
Thank you Sir....
huazai2020
huazai2020 2020년 7월 4일
This is my codes:
clc; clear all;
A=[2 1;1,2]; %Ellipse equation matrix
y=[1;0.5]; %External point
Aroot=chol(A);
L=Aroot\eye(2);
z=Aroot\trustregprob(L.'*L, L.'*y,1);
ellipsefun=@(p,q) sum([p;q].*(A*[p;q]))-1 ;
hold on
ezplot(ellipsefun, [-1 1.3 -1 1.3])
plot(y(1),y(2),'rx',z(1),z(2),'bo');
axis equal
hold off
I use the ezplot, but it gives me some errors below, what is the reason?
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 specgraph\private\ezplotfeval at 57
In ezplot>ezimplicit at 258
In ezplot at 154

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by