フィルターのクリア

what is meant by singleton dimension?

56 ビュー (過去 30 日間)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2013 年 7 月 5 日
コメント済み: Image Analyst 2020 年 11 月 20 日
what is meant by singleton dimension?

採用された回答

Image Analyst
Image Analyst 2013 年 7 月 5 日
That's a dimension that has a length of 1. For example, if you had a 3D image that is 400 rows by 1 column by 200 slices, the second dimension (columns) would be a singleton since it's one. You'd have only one image plane running in the y-z direction (rows-slices). You can get back to a 2D image by using squeeze() to remove the singleton dimension.
  4 件のコメント
Swati Sarangi
Swati Sarangi 2020 年 11 月 20 日
@Image Analyst
I've a doubt here, M3d = randi(9, 2, 4, 3)
What does '9' indicate in the above command?
Image Analyst
Image Analyst 2020 年 11 月 20 日
That is the max value that the random numbers in the 2-by-4-by-3 three-D matrix can take on. Did you look up randi in the help documentation? It describes it there.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by