Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
m = 5.98e24/81; % Moon
y_correct = 1e-4; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
2 | Pass |
m = 5.98e24; % Earth
y_correct = 0.0089; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
3 | Pass |
m = 1.89813e27; % Jupiter
y_correct = 2.819; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
4 | Pass |
m = 2e30; % Sun
y_correct = 2970.2416; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13051 Solvers
5833 Solvers
Matrix with different incremental runs
249 Solvers
559 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
297 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!