How to add maximum minimum points with respect to zero?

3 次查看(过去 30 天)
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?

采纳的回答

Chunru
Chunru 2022-2-9
编辑:Chunru 2022-2-9
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')

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by