Skip to main content
1-Visitor
January 12, 2012
Solved

Question (linear indexing and more)

  • January 12, 2012
  • 1 reply
  • 1695 views

I am trying to combine tow vectors such than if we have a={a1,a2,a3,a4} and b={b1,b2,b3,b4} .... I want to get c={a1,b1,NaN,a2,b2,NaN,a3,b3,NaN,a4,b4,NaN}.

I have attached a file of what I have done but it's not working.

Best answer by AlanStevens

One method attached.

Alan

1 reply

19-Tanzanite
January 12, 2012

One method attached.

Alan