Matlab question: How to pick specific value from column vector

Click For Summary
SUMMARY

The discussion focuses on retrieving a specific value from a column vector in MATLAB. The user inquired about accessing the 99th value of a column vector named 'time'. The solution provided is straightforward: using the command time(99) directly returns the desired value without manual counting.

PREREQUISITES
  • Basic understanding of MATLAB syntax
  • Familiarity with column vectors in MATLAB
  • Knowledge of MATLAB indexing
  • Experience with MATLAB command window operations
NEXT STEPS
  • Explore MATLAB indexing techniques for multidimensional arrays
  • Learn about MATLAB data types and structures
  • Investigate MATLAB functions for vector manipulation
  • Study MATLAB documentation on accessing elements in arrays
USEFUL FOR

Students, researchers, and engineers working with MATLAB who need to efficiently access specific elements in data structures.

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 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K