Hi,
How to store pairvec(in below code) variable in matrix overnested(ix1,ix2) loops. Pls help me in doing this.
Thanks, SIta
clc;clear;x1s=rand(3,1)x2s=rand(3,1)for ix1=1:3 for ix2=1:3 pairvec(:,:,ix1*ix2)= horzcat(x1s(ix1),x2s(ix2)) temp=pairvec end % finalvec=pairvec(ix1*ix2,:)
end
Best Answer