How to create a vector of length m+1?

6 views (last 30 days)
Elena
Elena on 13 Jan 2015
Answered: A Jenkins on 13 Jan 2015
How can i do in order to create a vector of length m+1? In R i can write return(vector(mode="numeric",length=m+1)) Is there a similar way to write this command in Matlab? Thank you

Answers (1)

A Jenkins
A Jenkins on 13 Jan 2015
zeros(1,m+1)

Categories

Find more on Statistics and Machine Learning Toolbox 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!