- #1
thailovejj
- 1
- 0
I want to create row matrix A by using row matrix B_1 , B_2 , B_3 ,...,B_7
Example
B_1 = [1 2 3];
B_2 = [6 9 3];
B_3 = [4 7 5];
.
.
.
B_7 = [9 6 3];
Then A = [1 2 3 6 9 3 4 7 5 ... 9 6 3];
My way is
mea = input('Insert MEA No. :');
y = load(sprintf('%d.txt',mea),'-ascii');
for i=1:7
eval(['B_' num2str(i) '=y(i,:)']);
end
above code is create matrix B_1 - B_7
and Then
A = [B_1 B_2 B_3 ... B_7];
but I want the code which can use for other case.
Thank you
Example
B_1 = [1 2 3];
B_2 = [6 9 3];
B_3 = [4 7 5];
.
.
.
B_7 = [9 6 3];
Then A = [1 2 3 6 9 3 4 7 5 ... 9 6 3];
My way is
mea = input('Insert MEA No. :');
y = load(sprintf('%d.txt',mea),'-ascii');
for i=1:7
eval(['B_' num2str(i) '=y(i,:)']);
end
above code is create matrix B_1 - B_7
and Then
A = [B_1 B_2 B_3 ... B_7];
but I want the code which can use for other case.
Thank you
Last edited: