MATLAB help Suppose you have a Matrix A that is very large

MATLAB help:

Suppose you have a Matrix A that is very large - 5400 x 4096

You will have to delete some rows of the A matrix in a particular pattern. The pattern of rows is keep 60, delete 60, keep 60, delete 60, etc.

Please help!!!

Solution

rr = [];
for i = 1:2:90
for j = 1:60
rr = [a 60*i+j];
end
end
A(rr,:)=[];

MATLAB help: Suppose you have a Matrix A that is very large - 5400 x 4096 You will have to delete some rows of the A matrix in a particular pattern. The pattern

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site