This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
coords=[0 0;1 0; 1 1; 0 1];
lnods=[ 1 2 4; 2 3 4];
y_correct = [0.500;0.500];
assert(isequal(areas(coords,lnods),y_correct))
|
2 | Pass |
coords=[0 0;1 0; 1 1; 0 1; 0.5 0.5];
lnods=[ 1 2 5; 2 3 5;3 4 5;4 1 5];
y_correct = [0.2500;0.2500;0.2500;0.2500];
assert(isequal(areas(coords,lnods),y_correct))
|
9831 Solvers
2500 Solvers
1223 Solvers
115 Solvers
273 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!