Query regarding the colon operator

1 回表示 (過去 30 日間)
Ganesh Kini
Ganesh Kini 2020 年 3 月 28 日
コメント済み: Walter Roberson 2020 年 3 月 28 日
a(:,:,3,10,6,1) =
45 119 15.242 21.568 115.843 139.661 16.265
255.978 923.596 78.549 102.645 679.539 833.699 81.573
This is the output of the program. Can something tell me what is a(:,:,3,10,6,1)
What does 3,10,6,1,indicate? I am new to matlab . Kindly help

採用された回答

Steven Lord
Steven Lord 2020 年 3 月 28 日
The a variable is a 6-dimensional array. The part you're showing spans all the rows (the first colon) and all the columns (the second colon) in the 3rd page (third dimension), 10th "book" (fourth dimension), 6th "bookshelf" (fifth dimension), and 1st "library" (sixth dimension) of the array. The terms row, columns, and pages for the first three dimensions are standard; "book", "bookshelf", and "library" are things I made up.
See this documentation page for more information about multidimensional arrays.
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 3 月 28 日
Another common term for the third dimension is "panes" (sometimes "planes") especially when you are referring to color information or multisensor information.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by