What type of data (200 x 200 x 200)

1 回表示 (過去 30 日間)
Jhie Ton
Jhie Ton 2020 年 2 月 4 日
コメント済み: Adam 2020 年 2 月 4 日
I have a data whose size is 200 x 200 x 200 double (seen in the workspace). What type of data is it? is it a matrix or a vector?
  2 件のコメント
stozaki
stozaki 2020 年 2 月 4 日
Please see fowlloing URL
Stephen23
Stephen23 2020 年 2 月 4 日
編集済み: Stephen23 2020 年 2 月 4 日
"What type of data is it?"
You wrote that it is a double, so that is its class:
" is it a matrix or a vector?"
There is no special classs for vectors or matrices: vectors are just arrays with one row, matrices are just arrays with size MxN... but they are all arrays. MATLAB does not store them as different classes, just as different sizes (just like mathematics!)

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

採用された回答

Adam
Adam 2020 年 2 月 4 日
編集済み: Adam 2020 年 2 月 4 日
It's an array. A 3d array to be precise, but just an array.
A vector (as defined by isvector(...) )is an nx1 or 1xn array
A matrix (as defined by ismatrix(...) ) is an nxm 2d array (so a vector is a subset of a matrix as a 1d array is not possible in Matlab).
You can also specify a row or column vector explicitly with isrow(...) and iscolumn(...)
  4 件のコメント
Jhie Ton
Jhie Ton 2020 年 2 月 4 日
reshape?
That when it is taken by the function isvector() the returned value is true
Adam
Adam 2020 年 2 月 4 日
doc reshape
will reshape an array. Or
myArray(:)
will collapse any dimensionality of array to a column vector.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by