I'm trying to plot this equation, if anyone can help
조회 수: 3 (최근 30일)
이전 댓글 표시
답변 (2개)
Star Strider
2020년 11월 29일
Take the square root of both sides, and plot:
y = +sqrt(4*a*x);
y = -sqrt(4*a*x);
That’s how I would do it, anyway.
댓글 수: 0
John D'Errico
2020년 11월 29일
If no value is supplied for a, then what will you plot?
Perhaps you might do this:
a = 0.25:0.25:2;
L = cell(size(a));
for ind = 1:numel(a)
ai = a(ind);
fun = @(x,y) y.^2 - 4*ai*x;
fimplicit(fun,[0,10,-10,10])
hold on
L{ind} = ['a = ',num2str(ai)];
end
legend(L{:},'location','northwest')
댓글 수: 0
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
