Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
mat=rand(10,10);
r=3;
c=5;
ind=43;
assert(isequal(index(mat,r,c),ind))
|
2 | Pass |
%%
mat=rand(3,24);
r=2;
c=22;
ind=65;
assert(isequal(index(mat,r,c),ind))
|
Select every other element of a vector
20358 Solvers
626 Solvers
Determine if a Given Number is a Triangle Number
322 Solvers
317 Solvers
2316 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!