Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
Y = 2e5;
S = 'kN/m^2';
y_correct = 2e8;
assert(isequal(convert_young(Y,S),y_correct))
y =
200000000
|
2 | Pass |
Y = 2e5;
S = 'N/m^2';
y_correct = 2e11;
assert(isequal(convert_young(Y,S),y_correct))
y =
2.0000e+11
|
3 | Pass |
Y = 2e5;
S = 'kN/mm^2';
y_correct = 2e2;
assert(isequal(convert_young(Y,S),y_correct))
y =
200
y =
200
|
4 | Pass |
Y = 2e5;
S = 'N/mm^2';
y_correct = 2e5;
assert(isequal(convert_young(Y,S),y_correct))
y =
200000
y =
200000
|
5 | Pass |
Y = 2e5;
S = 'kN/cm^2';
y_correct = 2e4;
assert(isequal(convert_young(Y,S),y_correct))
y =
20000
y =
20000
|
Remove any row in which a NaN appears
6827 Solvers
192 Solvers
Convert a numerical matrix into a cell array of strings
455 Solvers
434 Solvers
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!