Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



remove recurring elements from cell.
Posted:
Feb 23, 2013 4:34 PM


I need elements from the last cell (say kth) not occurring in cell before it i.e. (k1)th cell where k = 1,2,...,p. An example, k=2, r=2^(k+2)+2, n=2^(k)+1;
for i=1:k dt = 1:2^i:n; for j=1:2^(ki)+1 cd(j,:)= dt+ r*(j1); end dd{i}=cd; end
dd{1} =[1 3 5; 11 13 15; 21 23 25] dd{2} = [1 5;21 25]
I want all entries occurring in dd{2} removed from dd{1} i.e.
dd{1}= [3 11 13 15 23]. dd{2}= [1 5;21 25]



