Array inside an array
193 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have to insert a 3x1 matrix into a another matrix where this 3x1 matrix would be the first element of that matrix. Can anyone please tell me how do i do that?
0 Commenti
Risposte (2)
Mario Malic
il 24 Gen 2021
Hi,
You can do this with cell arrays
a =cell(3,1);
b = rand(3,1)
b =
0.8147
0.9058
0.1270
a{1} = b
a =
3×1 cell array
{3×1 double}
{0×0 double}
{0×0 double}
0 Commenti
Vedere anche
Categorie
Scopri di più su Data Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!