Trying to make my Implicit Function Work
Show older comments
I'm trying to plot an implicit function but it keeps returning that it behaves unexpectedly on array inputs. I don't know that I'm doing wrong because my Parts all all vectors as well as my plotting variables.
%All known or base variables%
Xc = [];
Yc = [];
e = 5.194469088;
f = 5.193588373;
a1 = 5.2548;
a4 = 0.2271;
fi2 = 1.046746555;
%All substitute value variables%
P1 = 2 * Xc * f;
P2 = e * cos(fi2);
Q1 = 2 * Yc * f;
Q2 = -e * sin(fi2);
R1 = Xc.^2 + Yc.^2 + f^2 - a1^2;
R2 = Xc -a4;
%Equation Parts%
Part1 = (R1 * Q2) - (R2 * Q1);
Part2 = (P1 * R2) - (P2 * R1);
Part3 = (P1 * Q2) - (P2 * Q1);
%Equation and Plot%
eq = @(Xc,Yc) (Part1.^2 + Part2.^2 - Part3.^2);
figure;
fimplicit (eq,[-100 100 -100 100]);
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!