Filter löschen
Filter löschen

How to add maximum minimum points with respect to zero?

1 Ansicht (letzte 30 Tage)
SOMNATH MAHATO
SOMNATH MAHATO am 9 Feb. 2022
Kommentiert: SOMNATH MAHATO am 9 Feb. 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?

Akzeptierte Antwort

Chunru
Chunru am 9 Feb. 2022
Bearbeitet: Chunru am 9 Feb. 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 Kommentare

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by