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

1 次查看(过去 30 天)
Using the zeros() or ones() command.

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by