How to extract a value from a Row or Column vector?

49 次查看(过去 30 天)
Im trying to take the 5th value of a randomly generated row or column vector. How would I write the code for that?

采纳的回答

Fangjun Jiang
Fangjun Jiang 2020-6-23
Is this what you are looking for ?
MyVector=rand(100,1);
MyData=MyVector(5);

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by