Create a 34 element column vector, PiVec, where every element is the irrational number pi

1 view (last 30 days)
Using the zeros() or ones() command.

Answers (1)

madhan ravi
madhan ravi on 21 Sep 2019
Use those commands and add/multiply with which number you want the elements to be.
doc ones
doc zeros

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!