From: roya olyazadeh on
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
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