Perfect combination of 2016b new function and delicate thought.
Nice!! I'm not the only one who solved this problem without str2num... ;-)
Of course your are not :)
Matrix indexing with two vectors of indices
485 Solvers
Generate a random matrix A of (1,-1)
211 Solvers
573 Solvers
155 Solvers
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!