initialize a multidimensional matrix
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
zhang
il 19 Feb 2014
Modificato: Azzi Abdelmalek
il 19 Feb 2014
Given two numbers: M, N, how to create a matrix: res = MxMxMxMxM...xM, where ndims(res) == N.
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 19 Feb 2014
Modificato: Azzi Abdelmalek
il 19 Feb 2014
N=6;
m=4;
A=zeros(repmat(m,1,n));
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays 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!