I am trying to update my array.i have an array ids which needs to be updated,whenever there is a new member(which is not present already in ids).Currently, i am using:
endtest = ismember(id_final,ids);%id_final is a temporary array
for k = 1:size(test,2)if test(k) ==0 ids =cat(2,ids,id_final(k)); end end
Is there some smart way to do this?
Please reply.
Best Answer