Files, Arrays, & Plotting

3 vues (au cours des 30 derniers jours)
Austin Walker
Austin Walker le 25 Avr 2021
Modifié(e) : Austin Walker le 26 Avr 2021
I need a function that will:
  1. Input the file name (I have a rough idea how to do this)
  2. Import the file (I know how to do this)
  3. Displays the first five rows of data (Figured this one out)
  4. Graphs the two series (I know that the subplot function is needed, just not how to code it)
I'm not asking for the whole code, just an individual section or two.

Réponses (1)

Adam Danz
Adam Danz le 25 Avr 2021
You mentioned rows of data so I'm guessing the files tabular data. In that case, the files can be imported using readtable | readcell | readmatrix | readtimetable depending on what kind of data are in the files.
To display certain rows of data, just use indexing such as T(n:m,:).
See the plot function.
  1 commentaire
Austin Walker
Austin Walker le 25 Avr 2021
I did end up figuring that one out, but thank you for the input.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by