About size function -Syntax : [m,n] = size(X)
Ältere Kommentare anzeigen
Hello, I wrote this code, but what does the number 1500 means?

i searched about 'size'through 'help' and they say '[m,n] = size(x)' returns the size of matrix X. But the size of the image I used is 300(height)*500(length).
Why the first l is 1500?
Thanks.
1 Kommentar
Star Strider
am 26 Jul. 2016
Images are 3D.
[h,l,d] = size(c)
will give the correct result.
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 26 Jul. 2016
0 Stimmen
size() gives you number of rows and column of a given matrix... imread() reads an image into pixels..it outputs RGB values if the image is coloured.... In your case the image you read has size of 300x1500
Kategorien
Mehr zu Image Segmentation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!