Create array of all zeros
Ältere Kommentare anzeigen
I use "zeros" to create a matrix with all zeros.
but I want to create matrix with all 0.0000
is there any way for doing this?
c=zeros(10,1);
I would like to have all 0.0000
Thank you very much
Akzeptierte Antwort
Weitere Antworten (1)
Star Strider
am 13 Jun. 2016
They all are. What you see depends on the display format you choose.
To see all the zeros, type:
format long g
in the Command Window or in your script.
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!