How to plot x^2 - y^2 = 1?
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Niklas Kurz
am 14 Nov. 2020
Kommentiert: Niklas Kurz
am 3 Nov. 2021
Very simple question to understand I think.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 14 Nov. 2020
Try this:
syms x y
figure
fimplicit(x^2 + y^2 -1, [-1 1])
axis('equal')
.
8 Kommentare
Star Strider
am 16 Nov. 2020
As always, my pleasure!
Note that ‘<1’ includes everything from infinitesimally less than +1 to -Inf.
Weitere Antworten (1)
Image Analyst
am 14 Nov. 2020
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 Kommentare
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!