Plotting a .txt with labels

조회 수: 1(최근 30일)
Ross Thompson
Ross Thompson 2021년 4월 6일
답변: Hiro 2021년 4월 6일
I have a .txt file with a list of years and a list of weights. It looks like this
When i try to plot this i get an error saying (Unknown text on line number 1 of ASCII file filename.txt
""year""). What is the best way of plotting this data?


Hiro 2021년 4월 6일
Hit some "Data import" button by following
MATLAB > HOME > Data Import > "select a.txt" using Data import App
This way, you can exclude unnecessary part of the data such as text.


Community Treasure Hunt

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

Start Hunting!

Translated by