MATLAB: Concatenation between two value

image processingmathematics

Hi, i have an example value 0.7854 and 2.8284. Then i want to concatenation them to get value of vectors. So, how to solve it using matlab code.

Best Answer

vec(1) = 0.7854 ;
vec(2) = 2.8284 ;
or
vec = [0.7854 2.8284 ] ;