Can you create a matrix where every element is a vector?

5 ビュー (過去 30 日間)
JESUS LOPEZ ARENAL
JESUS LOPEZ ARENAL 2021 年 10 月 21 日
コメント済み: JESUS LOPEZ ARENAL 2021 年 10 月 21 日
I want to create a 3 dimensional matrix (i.e. 100*100*100) where every element in that matrix is a n-dimensional vector (i.e. (1,2,3)), there is any way or command to asign a vector to a element of my matrix?

採用された回答

KSSV
KSSV 2021 年 10 月 21 日
You can consider each element as a cell. And then create a cell array. But why?
A = cell(2) ;
A{1,1}=rand(1,3) ;
A{1,2}=rand(1,3) ;
A{2,1}=rand(1,3) ;
A{2,2}=rand(1,3) ;
celldisp(A)
  1 件のコメント
JESUS LOPEZ ARENAL
JESUS LOPEZ ARENAL 2021 年 10 月 21 日
I tried it and think it will work. Is for a simulation on material properties. Thanks you KSSV.

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

その他の回答 (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