How to change matrix?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a 6*3 matrix and I want to change to 6*2 matrix, how can I do it?
example:
N1=[1 2 3;4 5 6]
then
N1=[1 2;4 5]
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 1 Juin 2013
Modifié(e) : Azzi Abdelmalek
le 1 Juin 2013
N1=[1 2 3;4 5 6]
N1=N1(:,1:2) % : means all lines, and 1:2 means column 1 to 2
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!