how to make a vector of zeros.

16 visualizzazioni (ultimi 30 giorni)
Amireza Hassannejad
Amireza Hassannejad il 11 Nov 2020
Risposto: James Tursa il 11 Nov 2020
hey guys. i want to make a vector of zeros. something like:
V=[0 0 0 0 0 0 0 0 0 0 0 0]
but with so many zeros. please give me a fast solution

Risposta accettata

James Tursa
James Tursa il 11 Nov 2020
n = number of zeros
v = zeros(1,n);

Più risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by