add matrix with respect to dimension
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
how to add (3*3) matrix with dimension 3 for M(a,b,c) where a and b are (3*3) and c corresponds to dimension. after adding M(a,b,c) the results gets stored in N. so N =sum(M(a,b,c),3);
whether the command which i have used was right since i am unable to get the correct result.
Antworten (1)
Andrei Bobrov
am 7 Dez. 2017
M = randi(25,3,3,4)
addarray = rand(3)
out = cat(3,M,addarray)
1 Kommentar
jaah navi
am 7 Dez. 2017
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!