-
1 Comment
Hello Say
on 6 Oct 2021
hello, i have problem understanding the code,
in:
for c=1:l
for r=c:l
if a(c)==a(r)
freq(c)=freq(c)+1
else
break
end
end
end
why didn't the c=1,r=5 satisfy the "a(c)==a(r)",in a(c)==a(r)
thanks a lot
Suggested Problems
-
Construct an index vector from two input vectors in vectorized fashion
399 Solvers
-
5545 Solvers
-
850 Solvers
-
985 Solvers
-
1726 Solvers
More from this Author80
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!