how to make a vector of zeros.

16 views (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!