doubts regarding matlab programming

Status
Not open for further replies.

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
 

So simple...
c = [a(1) b(1) a(2) b(2)]
 

Maybe you can try asking <http://www.mathworks.com/matlabcentral/answers/>
here for all Matlab queries
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…