필터 지우기
필터 지우기

Plot of square region of points

조회 수: 2 (최근 30일)
nick
nick 2017년 3월 14일
편집: nick 2017년 3월 14일
Hi, how can I plot a square lattice of points in a central region of my axes ?
if true
x1=0;
x2=1;
y1=0;
y2=1;
x = [x1, x2, x2, x1, x1];
y = [y1, y1, y2, y2, y1];
plot(x, y, 'b-', 'LineWidth', 3);
hold on;
x1=150;
x2=350;
y1=150;
y2=350;
x = [x1, x2, x2, x1, x1];
y = [y1, y1, y2, y2, y1];
% plot(x, y, 'b-');
xlim([1, 512]);
ylim([-1, 512]);
end
I mean, to plot points in the rectangular region that is possible to have with this code

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by