How to change size of array to match size of another array?
31 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ajk1
am 17 Apr. 2015
Bearbeitet: Guillaume
am 17 Apr. 2015
Hi, I have an array a which is a 1 dimension array (i.e. nx1 array) and I want to create a new array b, which copies the size (nx1) of array a but changes all the elements to 0. I would appreciate help with implementing this.
0 Kommentare
Akzeptierte Antwort
Cemil Közkurt
am 17 Apr. 2015
Bearbeitet: Guillaume
am 17 Apr. 2015
a=[1:10]' ; % n=10
b=zeros(size(a));
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types 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!