±±¾©Ê¯ÓÍ»¯¹¤Ñ§Ôº2026ÄêÑо¿ÉúÕÐÉú½ÓÊÕµ÷¼Á¹«¸æ
²é¿´: 311  |  »Ø¸´: 8
µ±Ç°Ö÷ÌâÒѾ­´æµµ¡£
µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû

yujunhui

Òø³æ (ÖøÃûдÊÖ)

[½»Á÷] ¡¾ÇóÖú¡¿size º¯ÊýµÄÓ÷¨£¿

size º¯ÊýÊǸÉʲôÓõģ¿
ÆäÓ÷¨ÊÇʲô£¿
»Ø¸´´ËÂ¥

» ²ÂÄãϲ»¶

°²¾²
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

yujunhui

Òø³æ (ÖøÃûдÊÖ)

ÒýÓûØÌû:
Originally posted by change0618 at 2009-10-14 16:56:

¶Ô¶þά¾ØÕóaÀ´½²£º
[m,n]=size(a)  % m±íʾÐÐÊý£¬n±íʾÁÐÊý
m=size(a,1)   % 1±íʾÇóÐÐÊý
n=size(a,2)   % 2±íʾÇóÁÐÊý
ÒÔ´ËÀàÍÆ

ллÁË£¡
°²¾²
9Â¥2009-10-14 23:25:11
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
²é¿´È«²¿ 9 ¸ö»Ø´ð

change0618

Ìú¸Ëľ³æ (ÖøÃûдÊÖ)

·½ÕÉ´óʦ

¡ï ¡ï ¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
kuhailangyu(½ð±Ò+2,VIP+0):ÌæÂ¥Ö÷ÖÂлÁË£¬ºÇºÇ 10-14 09:50
help size
SIZE   Size of array.  
    D = SIZE(X), for M-by-N matrix X, returns the two-element row vector
    D = [M,N] containing the number of rows and columns in the matrix.
    For N-D arrays, SIZE(X) returns a 1-by-N vector of dimension lengths.
    Trailing singleton dimensions are ignored.

    [M,N] = SIZE(X) for matrix X, returns the number of rows and columns in
    X as separate output variables.
   
    [M1,M2,M3,...,MN] = SIZE(X) for N>1 returns the sizes of the first N
    dimensions of the array X.  If the number of output arguments N does
    not equal NDIMS(X), then for:

    N > NDIMS(X), SIZE returns ones in the "extra" variables, i.e., outputs
                  NDIMS(X)+1 through N.
    N < NDIMS(X), MN contains the product of the sizes of dimensions N
                  through NDIMS(X).

    M = SIZE(X,DIM) returns the length of the dimension specified
    by the scalar DIM.  For example, SIZE(X,1) returns the number
    of rows. If DIM > NDIMS(X), M will be 1.

    When SIZE is applied to a Java array, the number of rows
    returned is the length of the Java array and the number of columns
    is always 1.  When SIZE is applied to a Java array of arrays, the
    result describes only the top level array in the array of arrays.

    Example:
    If
       X = rand(2,3,4);
    then
       d = size(X)              returns  d = [2 3 4]
       [m1,m2,m3,m4] = size(X)  returns  m1 = 2, m2 = 3, m3 = 4, m4 = 1
       [m,n] = size(X)          returns  m = 2, n = 12
       m2 = size(X,2)           returns  m2 = 3

    See also length, ndims, numel.
2Â¥2009-10-14 09:33:41
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

change0618

Ìú¸Ëľ³æ (ÖøÃûдÊÖ)

·½ÕÉ´óʦ

·¢Ìû֮ǰÄܲ»ÄÜhelp һϰ¡£¿
3Â¥2009-10-14 09:34:22
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

xichen4834

½ð³æ (СÓÐÃûÆø)

ÎÒ˵¥ÉÏÄã¶¼»Ø¸´È˼ÒÁË£¬¾Í±ðÅúÆÀÁË£¡
4Â¥2009-10-14 16:37:04
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] 343Çóµ÷¼Á +8 °®î¿°í 2026-03-29 8/400 2026-04-03 22:19 by –¹Æ?
[¿¼ÑÐ] 281Çóµ÷¼Á +10 aaawhy 2026-04-03 10/500 2026-04-03 21:42 by lbsjt
[¿¼ÑÐ] 343Çóµ÷¼Á085601 +6 ҪŬÁ¦Ñ§Ï°x 2026-03-29 7/350 2026-04-03 19:49 by °ÙÁéͯ888
[¿¼ÑÐ] Çóµ÷¼Á +9 akdhjs 2026-03-31 11/550 2026-04-03 13:32 by akdhjs
[¿¼ÑÐ] 285Çóµ÷¼Á +6 FZAC123 2026-03-30 6/300 2026-04-03 12:22 by xingguangj
[¿¼ÑÐ] Çóµ÷¼Á +3 ÐÄÏëÊÂ³É¿É 2026-04-03 3/150 2026-04-03 11:22 by wangjy2002
[¿¼ÑÐ] 311Çóµ÷¼ÁÒ»Ö¾Ô¸ºÏ·Ê¹¤Òµ´óѧ +15 Çï¶þÊ®¶þ 2026-03-30 15/750 2026-04-03 10:19 by linyelide
[¿¼ÑÐ] 326Çóµ÷¼Á +3 9ahye 2026-04-02 4/200 2026-04-03 08:43 by Jaylen.
[¿¼ÑÐ] Çóµ÷¼ÁÇóµ÷¼Á +7 121. 2026-04-02 7/350 2026-04-02 19:15 by dick_runner
[¿¼ÑÐ] 318Çóµ÷¼Á£¬¼ÆËã²ÄÁÏ·½Ïò +10 Îüß÷Óк¦óÏÃü 2026-04-01 11/550 2026-04-02 16:29 by oooqiao
[¿¼ÑÐ] ²ÄÁÏר˶322·Ö +11 ¹þ¹þ¹þºðºðºð¹þ 2026-04-01 11/550 2026-04-02 10:52 by lnilvy
[¿¼ÑÐ] 266Çóµ÷¼Á +4 ѧԱ97LZgn 2026-04-02 4/200 2026-04-02 09:52 by yulian1987
[¿¼ÑÐ] »¯Ñ§¹¤³Ìר˶324·Ö£¬Ò»Ö¾Ô¸Öйú¿óÒµ´óѧÇóµ÷¼Á +7 ¹¢¹¢1314 2026-04-01 7/350 2026-04-02 07:40 by ÉÐË®¸óÖ÷
[¿¼ÑÐ] ²ÄÁÏÇóµ÷¼Á +8 ÄØÄØÄÝÄÝ 2026-04-01 8/400 2026-04-02 07:13 by yjolah
[¿¼ÑÐ] 358Çóµ÷¼Á +3 ÍõÏòÑô»¨ 2026-03-31 3/150 2026-04-01 09:56 by zzchen2000
[¿¼ÑÐ] µ÷¼ÁÉêÇë +8 ÕÅÕÅÕÅÕÅzy 2026-03-31 9/450 2026-04-01 08:29 by zjbkx
[¿¼ÑÐ] Ò»Ö¾Ô¸»ª¶«Ê¦·¶´óѧÓлú»¯Ñ§×¨Òµ£¬³õÊÔ351·Ö£¬¸´ÊÔ±»Ë¢Çóµ÷¼Á! +9 ÕæÃûÓбù 2026-03-29 10/500 2026-03-31 18:01 by xhai2011
[¿¼ÑÐ] ÎïÀíѧµ÷¼Á +4 СÑò36 2026-03-30 4/200 2026-03-31 16:16 by lishahe
[¿¼ÑÐ] Ó¢Ò»ÊýÒ»×Ü·Ö334Çóµ÷¼Á +4 ³ÂÑôÀ¤ 2026-03-31 4/200 2026-03-31 14:22 by ¼Çʱ¾2026
[¿¼ÑÐ] 305Çóµ÷¼Á +8 RuiFairyrui 2026-03-28 8/400 2026-03-29 08:22 by fmesaito
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û