How to intialize a data store with 100000 zeros?

2 vues (au cours des 30 derniers jours)
Bala
Bala le 26 Avr 2016
Commenté : Elias Gule le 29 Avr 2016
How to intialize a data store with 100000 zeros?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 26 Avr 2016
zeros(1,100000)
  2 commentaires
Bala
Bala le 27 Avr 2016
Thank you. I thought it won't take statements like this for intialization.
Elias Gule
Elias Gule le 29 Avr 2016
zeros(1,1000000,'double') is faster.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Descriptive Statistics and Visualization dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by