How to plot data from a matrix using only a line?

I have data storaged in files with .txt format, that I upload into MATLAB.
I would like to plot the data using only a line. Is there any solution besides conecting every pair of points with lines, or is this even a good solution?
Thank you in advance, cheers.

Réponses (1)

Cris LaPierre
Cris LaPierre le 9 Jan 2021

0 votes

You really have two options. Plot markers, or plot a line. You have lots of plotting options in MATLAB. See this page for the basics of using plot. For more, visit Ch 9 of MATLAB Onramp.

Produits

Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by