#Day6- #100DaysChallenge- Matlab Loops| Occurrence of Two one in a vector
#Day6- #100DaysChallenge- Matlab Loops| Occurrence of Two one in a vector Task: Find Occurrence of two one in a given vector. Find the number of times [1,1] pattern occur in the given vector Note: This code can be done using the in-built command. But for the challenge I am trying to avoid those x=[1,1,1,1,3,5,6,7,12,3,4,5] y=3 x1=[1,2,1,3,4,5,1] y=0 x2=[1,2,3,4,1,1,1,1,1,1,1,1] y=7 Number of Input Variable:1 Number of Output Variable :1 Loops used:for if. Free program: https://www.matlabcoding.com Free Codes: youtube.com/castorclasses Free Support: castorclasses2014@gmail.com Live Support: t.me/matlabirawen Like us: https://www.facebook.com/matlabirawen/ Join us: https://www.facebook.com/groups/MATLABCODES/ MATLAB Book for the beginner: https://amzn.to/3fTfmTa
#Day6- #100DaysChallenge- Matlab Loops| Occurrence of Two one in a vector Task: Find Occurrence of two one in a given vector. Find the number of times [1,1] pattern occur in the given vector Note: This code can be done using the in-built command. But for the challenge I am trying to avoid those x=[1,1,1,1,3,5,6,7,12,3,4,5] y=3 x1=[1,2,1,3,4,5,1] y=0 x2=[1,2,3,4,1,1,1,1,1,1,1,1] y=7 Number of Input Variable:1 Number of Output Variable :1 Loops used:for if. Free program: https://www.matlabcoding.com Free Codes: youtube.com/castorclasses Free Support: castorclasses2014@gmail.com Live Support: t.me/matlabirawen Like us: https://www.facebook.com/matlabirawen/ Join us: https://www.facebook.com/groups/MATLABCODES/ MATLAB Book for the beginner: https://amzn.to/3fTfmTa