Given a 1D vector, x, that has 600000 elements, how can I count the number of times the value 1 appears after the 150th position (excluding 150)?

# MATLAB: How to count the number of times a specific value appears within a range in a 1D vector

countindex

###### Related Question

- How to optimize the multiplication of large matrices in Matlab
- I want to count the frequency of occurrence of no 5 in the above vector .Is there any matlab function to count the frequency of occurrence of a particular number
- I need some help in seeing where I am going wrong and how to proceed with writing a particular funciton for a MATLAB course I am taking please.
- What does “Lv” mean? I don’t know what the L is for.
- Count the Number of Times a Specific String Occurs in a given Column

## Best Answer