Problem 360. peta to nano (x-ray)

Solution 1681070

Submitted on 27 Nov 2018 by li haitao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
peta = 40; nano_correct = 7.5; assert(isequal(round(peta_to_nano(peta)*1000)/1000,nano_correct))

2   Pass
peta = 250; nano_correct = 1.2; assert(isequal(round(peta_to_nano(peta)*10)/10,nano_correct))

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!