-
2 Comments
Harish Maradana
on 22 Mar 2013
function B = your_fcn_name(value,row,col)
B(row,col)=value;
end
but it shows error pls help me
Tim
on 22 Mar 2013
When row and col are vectors of length n, B(row,col)=value resets all combinations of row(i) and col(j) (a total of n^2 elements); the problem wants just row(i) and col(i) (a total of n elements).
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!