How to plot x^2 - y^2 = 1?
20 ビュー (過去 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 で Contour Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
