Combine two vectors together
    4 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
For example I got a = [1 3 5], b = [2 4]  and I want to get a c = [1 2 3 4 5 ]
Basically it'd insert the vaule from b between a's two elements 
0 comentarios
Respuestas (3)
  Osip Vayner
 el 28 de Ag. de 2020
        KSSV's code is correct.
And just in case you want to combine two vectors vertically:
d = sort([a;b])
0 comentarios
Ver también
Categorías
				Más información sobre Annotations en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



