import an excelsheet in matlab with timestamp an plot
이전 댓글 표시
Hello,
Can someone help me out with this. I have a excelsheet with irradiation data and the time measured in hh:MM
Can anyone help me to plot a barchart with this data, xas should consist of the time measured in hh:mm
I have attached the excelfile
Many thanks in advance
답변 (1개)
Cris LaPierre
2021년 1월 11일
0 개 추천
There are a number of ways to import spreadsheets. You just need to pick one. I recommend readtable.
If you import the times as durations, you can just plot that as your x. It will appear as time on the x axis.
Once you have your x and y data, creating a bar plot is as simple as bar(x,y). See the documentation for syntax help and examples.
카테고리
도움말 센터 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!