MATLAB: How to extract a value from a Row or Column vector

columnextract valueMATLABrowvaluevector

Im trying to take the 5th value of a randomly generated row or column vector. How would I write the code for that?

Best Answer

Is this what you are looking for ?
MyVector=rand(100,1);
MyData=MyVector(5);