vv=(1:100)'A=[3;8;21;44;60;79;99]f_vv=find(vv==A);vv(reshape(f_vv,length(f_vv),1))=[];
I got this error
Dimensions of arrays being concatenated are not consistent.
find and omit element from array
vv=(1:100)'A=[3;8;21;44;60;79;99]f_vv=find(vv==A);vv(reshape(f_vv,length(f_vv),1))=[];
Dimensions of arrays being concatenated are not consistent.
>> A = {[1,2,3,4],[4,2,3],[1,2,5,6,78,9],[1,2,3,4],[1,2,5,6,78,9],[4,2,3],[5,6,7]};>> N = numel(A);>> X = false(N,N); % find which arrays are the same:>> for ii=1:N, for jj=1:ii, X(ii,jj)=isequal(A{ii},A{jj}); end, end>> Y = X & cumsum(X,1)==1 & cumsum(X,2)==1; % indices that ignore duplicates.>> Z = A(any(Y,1));>> Z{:}ans = 1 2 3 4ans = 4 2 3ans = 1 2 5 6 78 9ans = 5 6 7
ezplot(vpa(ramp_response))
Best Answer