I have the following:
b = [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double]
whose dimensions are variable.
b{1}
ans =
0 0 0 0
I want to put the first entry of each of the 10 vectors as the first column of matrix A
2nd column of matrix A
will be as v the 1st entry of each of the 10 vectors of r
:
r =
[1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double] [1x4 double]
r{1} --> ans = 10 10 10 10
This is what i need to get:
A =
v{1}(1) r{1}(1)
v{2}(1) r{2}(1)
v{3}(1) r{3}(1)
How to do that without a loop is there a way?