How to create a long list using the same number?
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shane
am 23 Jul. 2014
Bearbeitet: Azzi Abdelmalek
am 23 Jul. 2014
Simple question but can't find it anywhere. I need to make a long list of the number say, 59, a thousand times.
59
59
59
59 etc
What is the syntax to do this? Thanks
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 23 Jul. 2014
Bearbeitet: Azzi Abdelmalek
am 23 Jul. 2014
repmat(59,1000,1)
%or
59*ones(1000,1)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays 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!