Dec 20, 2012 #1 M M.Shobana Member level 1 Joined Sep 13, 2011 Messages 35 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,505 hai friends.. I want to merge two vectors like in the below specified manner for example: a= [1 2]; b = [3 4] then 'c' should be like this c = [1 3 2 4 ] i tried like this c = [a,b] but this is not working if anybody knows please help me
hai friends.. I want to merge two vectors like in the below specified manner for example: a= [1 2]; b = [3 4] then 'c' should be like this c = [1 3 2 4 ] i tried like this c = [a,b] but this is not working if anybody knows please help me
Dec 20, 2012 #2 S sureshaa Member level 1 Joined Dec 18, 2012 Messages 41 Helped 3 Reputation 6 Reaction score 3 Trophy points 1,288 Activity points 1,529 So simple... c = [a(1) b(1) a(2) b(2)]
Dec 20, 2012 #3 X xtcx Advanced Member level 1 Joined Dec 22, 2007 Messages 493 Helped 65 Reputation 130 Reaction score 58 Trophy points 1,308 Location Bangalore, India Activity points 5,003 Maybe you can try asking <http://www.mathworks.com/matlabcentral/answers/> here for all Matlab queries
Maybe you can try asking <http://www.mathworks.com/matlabcentral/answers/> here for all Matlab queries
Dec 20, 2012 #4 M M.Shobana Member level 1 Joined Sep 13, 2011 Messages 35 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,505 sureshaa said: So simple... c = [a(1) b(1) a(2) b(2)] Click to expand... the size of a and b vector will be known at the run time only.Its not just contain only two elements
sureshaa said: So simple... c = [a(1) b(1) a(2) b(2)] Click to expand... the size of a and b vector will be known at the run time only.Its not just contain only two elements