uses of 'zeros' and 'ones' function ?
Afficher commentaires plus anciens
hello all, what are the main uses of functions 'zeros' and 'ones' ? Why we use them ? thank you
Réponse acceptée
Plus de réponses (1)
Dimithra Anton
le 13 Sep 2020
Modifié(e) : Dimithra Anton
le 13 Sep 2020
zeros(length(numbers),2)
what about this??? what does (numbers) do and why is the number of columns 6?
1 commentaire
Steven Lord
le 13 Sep 2020
numbers is an array that is being passed into the length function (or it is a function that can be called with no input arguments and whose first output is being passed into the length function.)
I would not expect that command to return an array with six columns. Assuming you haven't written or downloaded a zeros.m function that is taking precedence over the built-in function it should return a matrix with two columns.
which -all zeros
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!