MATLAB Answers

Counting the occurrence of a value=Inf in an array

4 views (last 30 days)
Cantor Set
Cantor Set on 14 Feb 2020
I am given a vector for instance
R=[1;2;3;4;5;6 Inf; 7; Inf];
Is there a function in matlab which has inputs R and Inf and gives me back the number of occurrence of Inf in R?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!