How to do this while loop
Show older comments

4 Comments
Walter Roberson
on 5 Mar 2020
What should the loop do if no whatevers have absolute value <= 1 ?
I cannot tell what it is that the absolute value is being taken for.
Is it correct that you expect your while loop to take only one trip and the whole algorithm would stop immediately because it would detect that abs(A(1)-B(1)) is <= 1 and that single entry is all you need?
Robin Li
on 5 Mar 2020
Robin Li
on 5 Mar 2020
Walter Roberson
on 5 Mar 2020
Are you to produce a vector the same size as A? A vector the same size as B? Are you permitted to use vectorized operations at all?
Accepted Answer
More Answers (0)
Categories
Find more on Wavelet Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!