-
2 Comments
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"
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!