Effacer les filtres
Effacer les filtres

How to plot part of the data from larger data file?

7 vues (au cours des 30 derniers jours)
Neha Gawande
Neha Gawande le 7 Août 2015
Commenté : Neha Gawande le 7 Août 2015
I have a text file containing 5 columns and 63 rows of data. I want to extract first 21 rows of first 2 columns and plot them in matlab. How can i do it?

Réponse acceptée

bio lim
bio lim le 7 Août 2015
A = rand(63, 5);
sub_A = A(1:21, [1 2]);
You can extract the 21 rows of the first two columns like this and proceed with your plot.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 7 Août 2015
The easiest way is to load all of the data and then index it to extract the portion you want.

Catégories

En savoir plus sur Graphics Object Identification 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!

Translated by