MATLAB Matlab question: How to pick specific value from column vector

AI Thread Summary
To retrieve a specific value from a column vector in MATLAB, such as the 99th value, you can directly access it using indexing. For a vector named "time," simply enter the command "time(99)" to obtain the desired value without manual counting. This method provides a straightforward solution for accessing elements in MATLAB vectors efficiently.
bmed90
Messages
99
Reaction score
0
Good afternoon,

I have created a column vector with many values however I want to know a specific value found in that vector. Specifically I want to know the 99th value of my column vector. Is there a command I can enter into mat lab that will give me the value I seek without having to manually count through the outputted data in the output window? Thanks!
 
Physics news on Phys.org
I figured it out, its actually quite simple say the vector is names time. Just type in

time(99)
 

Similar threads

Replies
2
Views
2K
Replies
1
Views
4K
Replies
1
Views
2K
Replies
2
Views
1K
Replies
6
Views
2K
Replies
5
Views
3K
Back
Top