I'm using an auxiliary function that operates on an 1x4 array. But I need to append 2 extra columns to that 1x4 in the final output. Is there a way to merge 1x2 with 1x4?

3 visualizaciones (últimos 30 días)
function [finalOutput] = outerfun()
o1 = auxfunc()
o2 = auxfunc2()
% how to merge o1 and o2 ?
end
function [out] = auxfunc()
% out is 1x4
end
function [out2] = auxfunc2()
% out2 is 1x2
end

Respuestas (1)

Thorsten
Thorsten el 11 de Sept. de 2015
o = [o1, o2];

Categorías

Más información sobre Operators and Elementary Operations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by