how to draw border
Mostra commenti meno recenti
hi there, i have four set of coordinate and i want to draw line to make a border. after that i want to crop it automatically at the border. here, i attach the illustration for further understanding. please help me.. thank you
Risposta accettata
Più risposte (1)
Matt Kindig
il 27 Apr 2012
To draw the border, you can just use 'plot':
w=[26 77];
x=[26 555];
y=[426 77];
z=[426 555];
Points = [w;x;z;y;w]; %in desired order
plot( Points(:,1), Points(:,2), 'r-');
What do you mean you want to "crop" your data set at the border?
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!