How to plot x^2 - y^2 = 1?
51 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Niklas Kurz
el 14 de Nov. de 2020
Comentada: Niklas Kurz
el 3 de Nov. de 2021
Very simple question to understand I think.
0 comentarios
Respuesta aceptada
Star Strider
el 14 de Nov. de 2020
Try this:
syms x y
figure
fimplicit(x^2 + y^2 -1, [-1 1])
axis('equal')
.
8 comentarios
Star Strider
el 16 de Nov. de 2020
As always, my pleasure!
Note that ‘<1’ includes everything from infinitesimally less than +1 to -Inf.
Más respuestas (1)
Image Analyst
el 14 de Nov. de 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;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/414148/image.png)
0 comentarios
Ver también
Categorías
Más información sobre Line Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!