Michael Green - MATLAB Cody - MATLAB Central

Michael Green

7170
Rank
2
Badges
885
Score
1 – 50 of 94

Michael Green submitted a Comment to Solution 899985

Joe, I think you have a floating point rounding error. I had this same issue and its frustrating. If you look at the value for b(12) and what it outputs, it outputs 0.99999. While we know that's correct the computer doesn't. If you just add something at the end of the loop or on the line of b(12)=round(a/change(12), 2) this will round it to the nearest whole number and should get you the answer you're looking for.

on 9 Feb 2021

Michael Green submitted a Comment to Problem 1087. Magic is simple (for beginners)

This problem could probably be explained a little better.

on 8 Feb 2021

Michael Green submitted a Comment to Problem 1024. Doubling elements in a vector

Good problem if you don't use repelem

on 8 Feb 2021

Michael Green submitted a Comment to Problem 44945. Calculate BMI

Can anyone explain why "bmi = convmass(hw(:,2),'lbm','kg') ./ (convlength(hw(:,1),'in','m').^2);" doesn't work?

on 8 Feb 2021

Michael Green submitted a Comment to Solution 4754357

I think you need to fix your testing algorithm. I have the right answer but it keeps saying error.

on 5 Feb 2021

Michael Green submitted a Comment to Solution 4748932

Pretty sure my answer is right but there is an error in your test suite on test 2.

on 4 Feb 2021

1 – 50 of 94
Go to top of page