MATLAB 도움말 센터
Return size of geographic or planar vector
sz = size(v)
sz = size(v,dim)
[m, n] = size(v)
sz = size(v) returns the vector [length(v), 1].
sz
v
[length(v), 1]
example
sz = size(v,dim) returns the length of geographic or planar vector v in the dimension specified by dim.
dim
[m, n] = size(v) returns the length of v for m and 1 for n.
m
n
collapse all
Create a mapshape vector from a structArray.
structArray
structArray = shaperead('worldrivers.shp'); ms = mapshape(structArray)
ms = 128×1 mapshape vector with properties: Collection properties: Geometry: 'line' Metadata: [1×1 struct] Vertex properties: (128 features concatenated with 127 delimiters) X: [126.7796 126.5321 126.3121 126.2383 126.0362 NaN NaN 126.0362 125.1356 124.7906 124.1364 123.7004 123.4859 123.2781 123.0678 NaN NaN -134.0218 -134.0882 -134.3638 -134.4989 -134.4732 -134.4100 NaN NaN -135.5902 -135.2130 … ] (1×5542 double) Y: [73.4571 73.0669 72.8343 72.6010 72.2894 NaN NaN 72.2894 72.3784 72.4620 72.5086 72.5691 72.6517 72.8635 72.8684 NaN NaN 69.4726 69.3400 69.2873 69.1939 68.9479 68.8795 NaN NaN 68.9858 68.9367 68.9995 69.0016 68.8795 NaN NaN … ] (1×5542 double) Feature properties: Name: {1×128 cell}
Get the size of the mapshape vector.
sz = size(ms)
sz = 1×2 128 1
geopoint
geoshape
mappoint
mapshape
Geographic or planar vector, specified as a geopoint, geoshape, mappoint, or mapshape object.
Dimension to measure length of vector v, specified as a positive integer scalar.
Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | logical
single
double
int8
int16
int32
int64
uint8
uint16
uint32
uint64
logical
Size of vector v, returned as a nonnegative integer scalar or a two-element vector.
When dim is not specified, sz is the two-element vector [length(v), 1].
When dim is 1, sz is a scalar equal to the length of v.
When dim ≥ 2, sz is 1.
Data Types: double
Size of vector v in the first dimension, returned as a nonnegative integer scalar. m is length(v).
length(v)
Size of vector v in the second dimension, returned as the value 1.
Introduced in R2012a
length | isprop
length
isprop
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의