フィルターのクリア

about cat function in matlab

2 ビュー (過去 30 日間)
rathod ujjval rameshbhai
rathod ujjval rameshbhai 2015 年 8 月 13 日
編集済み: Stephen23 2015 年 8 月 17 日
c(:,:,1) =
1 2 3
4 5 6
c(:,:,2) =
7 8 9
10 11 12
Can anyone tell me what does (: :) mean above?
  1 件のコメント
Stephen23
Stephen23 2015 年 8 月 14 日
編集済み: Stephen23 2015 年 8 月 14 日
What does this have to do with cat ?

サインインしてコメントする。

採用された回答

dpb
dpb 2015 年 8 月 13 日
doc colon % can (and will)...

その他の回答 (1 件)

Stephen23
Stephen23 2015 年 8 月 14 日
編集済み: Stephen23 2015 年 8 月 17 日
The documentation is a really good place to find out how things work and what they do:
In your examples the two colons mean "all elements along the first dimension (all rows), all elements along the second dimension (all columns)", whereas the 1 and 2 refer to the third dimension (page). To learn how MATLAB indexing works you should do the introduction tutorials:

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by