How to plot x^2 - y^2 = 1?
123 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Niklas Kurz
il 14 Nov 2020
Commentato: Niklas Kurz
il 3 Nov 2021
Very simple question to understand I think.
0 Commenti
Risposta accettata
Star Strider
il 14 Nov 2020
Try this:
syms x y
figure
fimplicit(x^2 + y^2 -1, [-1 1])
axis('equal')
.
8 Commenti
Star Strider
il 16 Nov 2020
As always, my pleasure!
Note that ‘<1’ includes everything from infinitesimally less than +1 to -Inf.
Più risposte (1)
Image Analyst
il 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 Commenti
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!