How to plot x^2 - y^2 = 1?
62 次查看(过去 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;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/414148/image.png)
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!