-
2 Comments
Carlos Manuel Fernándezon 24 Mar 2016
I tried this one in MATLAB and it worked but here it keeps displaying assertion failed for every number different from 1
Timon 24 Mar 2016
Because you are using floating point calculations, the result may not be exact. If you round the result to the nearest integer it should work.
年代uggested Problems
Make the vector [1 2 3 4 5 6 7 8 9 10]
41181 Solvers
2880 Solvers
1302 Solvers
Arrange vector in ascending order
689 Solvers
Find the dimensions of a matrix
432 Solvers
More from this Author95
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
年代tart Hunting!