필터 지우기
필터 지우기

how to plot node in particular range but x and y lim is 1000x1000

조회 수: 1 (최근 30일)
singh
singh 2015년 7월 10일
편집: singh 2015년 7월 10일
bs=4;
area=1000;
X_coord=rand(1,bs)*area
Y_coord=rand(1,bs)*area
if ((X_coord<=100)&(X_coord>=880))
X_coord=rand(1)*area
end
if ((Y_coord<=100)&(Y_coord>=880))
Y_coord=rand(1)*area
end
for i2=1:bs
plot(X_coord(i2),Y_coord(i2),':o','LineWidth',3,'MarkerEdgeColor','k','MarkerFaceColor',...[0.5,0.5,0.5],'MarkerSize',3)
text(X_coord(i2),Y_coord(i2),'BS')
hold on
end
In above coding i need some solution if X_coord and Y_coord value is less than 100 and gteater than 880 shown in 3 and 4 line of above code, then it will again calculate particular X_coord and Y_coord value for ploting

답변 (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