This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Samer Habbal
on 3 Feb 2021
I made a good answer. and I was able to test hem in my desktop MATLAB but I got error with testing the first status here "error using assert"
goc3
on 3 Feb 2021
Your function is returning the result as a row vector rather than a column vector. MATLAB defaults to writing results as a row vector when only one dimension is specifed, so change your for-loop assignments to bmi(i,1) = ... to force a column vector (or transpose bmi after the loop).
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!