Cody

Problem 1378. Young's modulus

Solution 2730525

Submitted on 23 Jul 2020
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   Fail
Y = 2e5; S = 'kN/m^2'; y_correct = 2e8; assert(isequal(convert_young(Y,S),y_correct))

Error in solution: Line: 2 Column: 16 Character vector is not terminated properly.

2   Fail
Y = 2e5; S = 'N/m^2'; y_correct = 2e11; assert(isequal(convert_young(Y,S),y_correct))

Error in solution: Line: 2 Column: 16 Character vector is not terminated properly.

3   Fail
Y = 2e5; S = 'kN/mm^2'; y_correct = 2e2; assert(isequal(convert_young(Y,S),y_correct))

Error in solution: Line: 2 Column: 16 Character vector is not terminated properly.

4   Fail
Y = 2e5; S = 'N/mm^2'; y_correct = 2e5; assert(isequal(convert_young(Y,S),y_correct))

Error in solution: Line: 2 Column: 16 Character vector is not terminated properly.

5   Fail
Y = 2e5; S = 'kN/cm^2'; y_correct = 2e4; assert(isequal(convert_young(Y,S),y_correct))

Error in solution: Line: 2 Column: 16 Character vector is not terminated properly.

Suggested Problems

More from this Author11

Community Treasure Hunt

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

Start Hunting!