how can i assign a full row into a new row?
Mostra commenti meno recenti
suppose T = [1 2 3 4; 3 4 5 6]
and i want to assign the 1st row with all the column into a new row like P and this can be as follows
P= 1 2 3 4 Q= 3 4 5 6
Risposta accettata
Più risposte (1)
rantunes
il 3 Mar 2015
0 voti
Hey,
I am not sure if I really got your point, but what you want do is not this:
P = T(1,1:4); Q = T(1,5:8);
?
Greets
2 Commenti
wasima tammi
il 3 Mar 2015
rantunes
il 3 Mar 2015
So you just need to do P = T(1,:) and Q = T(2,:).
Categorie
Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!