Two feature vectors combining Row wise
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SATISH KUMAR
am 10 Jul. 2020
Kommentiert: SATISH KUMAR
am 10 Sep. 2020
Greetings to all,
I need one help, i need to combine the two feature vector, by selecting each one row from two feature vector like in the following form.
A = [ 022.33, 332.22,443.33,1
022.23, 322.23,423.33,1];
B = [232.3,443.2,5323.233,2
222.3,423.2,5323.333,2];
C = [022.33, 332.22,443.33,1
232.3,443.2,5323.233,2
022.23, 322.23,423.33,1
222.3,423.2,5323.333,2]
Thanks in advance..
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 10 Jul. 2020
c = zeros(size([A;B]));
c(1:2:end,:) = A;
c(2:2:end,:) = B
3 Kommentare
madhan ravi
am 10 Jul. 2020
SATISH comments:
c = zeros(size([A;B]));
c(1:2:end,:) = A;
c(2:2:end,:) = B
This solution worked . Thanks a lot for your solution
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!