How to plot x^2 - y^2 = 1?
조회 수: 128 (최근 30일)
이전 댓글 표시
Very simple question to understand I think.
댓글 수: 0
채택된 답변
Star Strider
2020년 11월 14일
Try this:
syms x y
figure
fimplicit(x^2 + y^2 -1, [-1 1])
axis('equal')
.
댓글 수: 8
Star Strider
2020년 11월 16일
As always, my pleasure!
Note that ‘<1’ includes everything from infinitesimally less than +1 to -Inf.
추가 답변 (1개)
Image Analyst
2020년 11월 14일
Try this:
% x^2 - y^2 = 1
% Or y = sqrt(x^2 - 1)
x = linspace(-2, 2, 1000);
y = sqrt(x .^ 2 - 1);
plot(x, y, 'b-', 'LineWidth', 2);
title('y = sqrt(x .^ 2 - 1)', 'FontSize', 15, 'Interpreter', 'none');
xlabel('x', 'FontSize', 15);
ylabel('y', 'FontSize', 15);
grid on;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!