Hello! I am new to Matlab, thank you in advance for helping me. I have a serie (called S) of around 800 numbers (or more) composed of values 1,2 or 4 (for ex. 111122111142222211 etc). In this series, I would like to find out when for every 100 numbers for ex. (this number can vary) more than/or equal to 80% (the % can vary) of the numbers have the value 2. Is it possible to create something like a sliding window which would slide through the serie S (beginning by 1-100, then 2-101, then 3-102 something like that) and tell me at what point >80% of the numbers have value 2? Thank you very much in advance, and feel free to ask me any questions!
1 Comment
Azzi Abdelmalek (view profile)
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/280933-create-a-sliding-window-to-determine-when-a-of-numbers-in-a-sequence-equal-a-certain-value#comment_361567
Sign in to comment.