how to delete a row by selected randomly from a matrix?
Show older comments
- d=2;
- for i=1:10
- pop(i,:)=rand(1,d);end
- M=pop(randi(size(pop,1)),:)
- now i want to know that how to delete this M without knowing the row number and the values of the row, just to delete it by using The "M"
Accepted Answer
More Answers (0)
Categories
Find more on Predictive Maintenance Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!