How to initialize a row vector with value zero of size 1xn?
35 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Shubham Maurya
le 19 Fév 2016
Commenté : Khileshwar Rajpuriya
le 30 Avr 2021
Say, I have a row vector A having n elements. I want to make all elements zero.
- For e.g., in 2-d, we write A=zeros(n)
0 commentaires
Réponse acceptée
jgg
le 19 Fév 2016
Look up the documentation for the zeros function, which you are using:
A = zeros(1,n);
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!