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.

回答(1 个)

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.

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

产品

版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by