MSCBSC 移動通信論壇
搜索
登錄注冊
網(wǎng)絡優(yōu)化工程師招聘專欄 4G/LTE通信工程師最新職位列表 通信實習生/應屆生招聘職位

【C友貼圖區(qū)】

C友貼圖和看圖,請到此版
勿發(fā)違規(guī)圖片

【C友開心吧】

C友交流開心笑話的區(qū)域
樂一樂,就在開心吧

【心情咖啡屋】

分享你的心情和通信生活
C友交流心情的地方

【求職招聘區(qū)】

招聘,求職,職業(yè)交流
討論通信人的職場前景



  • 閱讀:3341
  • 回復:0
[資料] matlab中size()函數(shù)的用法
yinkai_feng
新手上路
鎵嬫満鍙風爜宸查獙璇? style=


 發(fā)短消息    關注Ta 

積分 -826
帖子 33
威望 4796 個
禮品券 0 個
專家指數(shù) -1491
注冊 2013-8-31
專業(yè)方向  通信
來自 武漢
回答問題數(shù) 0
回答被采納數(shù) 0
回答采納率 0%
 
發(fā)表于 2015-11-01 20:08:58  只看樓主  QQ
size():獲取矩陣的行數(shù)和列數(shù) (1)s=size(A),
當只有一個輸出參數(shù)時,返回一個行向量,該行向量的第一個元素時矩陣的行數(shù),第二個元素是矩陣的列數(shù)。
(2)[r,c]=size(A),
當有兩個輸出參數(shù)時,size函數(shù)將矩陣的行數(shù)返回到第一個輸出變量r,將矩陣的列數(shù)返回到第二個輸出變量c。
(3)size(A,n)如果在size函數(shù)的輸入?yún)?shù)中再添加一項n,并用1或2為n賦值,則 size將返回矩陣的行數(shù)或列數(shù)。其中r=size(A,1)該語句返回的時矩陣A的行數(shù), c=size(A,2) 該語句返回的時矩陣A的列數(shù)。
另外,length()=max(size()).

MATLAB help 解釋 :
>> help size
sizeSize 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)returnsd = [2 3 4]
[m1,m2,m3,m4] = size(X)returnsm1 = 2, m2 = 3, m3 = 4, m4 = 1
[m,n] = size(X) returnsm = 2, n = 12
m2 = size(X,2)returnsm2 = 3
掃碼關注5G通信官方公眾號,免費領取以下5G精品資料
  • 1、回復“YD5GAI”免費領取《中國移動:5G網(wǎng)絡AI應用典型場景技術解決方案白皮書
  • 2、回復“5G6G”免費領取《5G_6G毫米波測試技術白皮書-2022_03-21
  • 3、回復“YD6G”免費領取《中國移動:6G至簡無線接入網(wǎng)白皮書
  • 4、回復“LTBPS”免費領取《《中國聯(lián)通5G終端白皮書》
  • 5、回復“ZGDX”免費領取《中國電信5G NTN技術白皮書
  • 6、回復“TXSB”免費領取《通信設備安裝工程施工工藝圖解
  • 7、回復“YDSL”免費領取《中國移動算力并網(wǎng)白皮書
  • 8、回復“5GX3”免費領取《 R16 23501-g60 5G的系統(tǒng)架構1
  • 對本帖內容的看法? 我要點評





    笨蛋就是你,你就是個大笨蛋
     
    [充值威望,立即自動到帳] [VIP貴賓權限+威望套餐] 另有大量優(yōu)惠贈送活動,請光臨充值中心
    充值擁有大量的威望和最高的下載權限,下載站內資料無憂

    快速回復主題    
    標題 [資料] matlab中size()函數(shù)的用法" tabindex="1">
    內容
     上傳資料請點左側【添加附件】

    當前時區(qū) GMT+8, 現(xiàn)在時間是 2025-02-09 04:38:28
    渝ICP備11001752號  Copyright @ 2006-2016 mscbsc.com  本站統(tǒng)一服務郵箱:mscbsc@163.com

    Processed in 0.249993 second(s), 11 queries , Gzip enabled
    TOP
    清除 Cookies - 聯(lián)系我們 - 移動通信網(wǎng) - 移動通信論壇 - 通信招聘網(wǎng) - Archiver