How to add maximum minimum points with respect to zero?

1 visualización (últimos 30 días)
SOMNATH MAHATO
SOMNATH MAHATO el 9 de Feb. de 2022
Comentada: SOMNATH MAHATO el 9 de Feb. de 2022
x1 min = -0.023 ; x1 max= 0.032
y1 min =-0.043; y1 max= 0.026
How to join these four points with respect to zero?
x2 min =-0.58; x2 max=0.081
y2 min= -0.07; y2 max=0.688
How to join these four points with respect to zero? and add these points in one diagram?

Respuesta aceptada

Chunru
Chunru el 9 de Feb. de 2022
Editada: Chunru el 9 de Feb. de 2022
x1_min = -0.023 ; x1_max= 0.032;
y1_min =-0.043; y1_max= 0.026;
p1 = [x1_min, 0; 0, y1_min; x1_max, 0; 0, y1_max; x1_min, 0];
x2_min =-0.58; x2_max=0.081;
y2_min= -0.07; y2_max=0.688;
p2 = [x2_min, 0; 0, y2_min; x2_max, 0; 0, y2_max; x2_min, 0];
plot(p1(:,1), p1(:,2)); hold on
plot(p2(:,1), p2(:,2)); hold off
set(gca, 'XAxisLocation', 'origin', 'YAxisLocation', 'origin')
  3 comentarios

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by