Filter löschen
Filter löschen

Dividing large area into small ones

7 Ansichten (letzte 30 Tage)
aya
aya am 15 Sep. 2014
Beantwortet: Image Analyst am 15 Sep. 2014
Hello everyone I have an X by Y geographical area X=[0 400], Y=[0 300] what I want to do is dividing this area into sub areas let's say 8 equal areas but in mind that I want the code to be applied for any values of X and Y and sub areas thank you in advance

Antworten (1)

Image Analyst
Image Analyst am 15 Sep. 2014
If your "area" is actually a 2D matrix, you can use mat2cell() or just use regular indexing. See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F for example code. Otherwise, why not just take X/8 and Y/8?

Kategorien

Mehr zu Graphics Object Programming 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