Effacer les filtres
Effacer les filtres

How I extract specific columns and lines?

13 vues (au cours des 30 derniers jours)
Danai Varvatsouli
Danai Varvatsouli le 14 Mai 2020
Commenté : darova le 14 Mai 2020
I have an excel file with a table 1442x31 and I want to extract specific columns and lines.
For Example I want to make a new table named a where I want to insert: all values from 109 until 210, from columns 3-20.
1 2 3 4 5 6 7 8
2 a b c d e f g
3 a b c d e f g
4 a b c d e f g
5 a b c d e f g
6 a b c d e f g
7 a b c d e f g
8 a b c d e f g
Let's say I want all values from 3rd column but only on lines 4,5,6,7
How do I do that?
  1 commentaire
darova
darova le 14 Mai 2020
Try
A1 = A(109:210,3:20);
read about colon

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by