Prev: Constrained neural network
Next: Text in plot
From: roya olyazadeh on 19 May 2010 09:20 A= [ 1 2 3 4 5 6 ] I need to rearrange my matrix like this : A= [ 1 0 2 0 3 0 4 0 5 0 6 0]
From: dpb on 19 May 2010 09:38 roya olyazadeh wrote: > A= [ 1 2 3 4 5 6 ] > I need to rearrange my matrix like this : A= [ 1 0 2 0 3 0 4 0 5 0 6 0] >> B=zeros(1,2*length(A)); >> B(1:2:length(B))=A(:) B = 1 0 2 0 3 0 4 0 5 0 6 0 >> --
|
Pages: 1 Prev: Constrained neural network Next: Text in plot |