Can you create a matrix where every element is a vector?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JESUS LOPEZ ARENAL
am 21 Okt. 2021
Kommentiert: JESUS LOPEZ ARENAL
am 21 Okt. 2021
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?
0 Kommentare
Akzeptierte Antwort
KSSV
am 21 Okt. 2021
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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!