Hi,
Kindly help to plot this workspace data , first column is formatted date and secnd column data against the date:Original date is attached below:
1/17/2011 7:00
1/17/2011 9:00
1/17/2011 11:00
1/17/2011 13:00
1/17/2011 15:00
1/17/2011 17:00
image is attached for workspace data :

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 2월 15일
편집: Cris LaPierre 2021년 2월 15일

0 개 추천

Convert collumn 1 to a datetime and then just use the plot command. See Ch 9 of MATLAB Onramp if you need more help with plotting.
d = datetime(40560.29167,'ConvertFrom','excel','Format','M/d/yyyy HH:mm')
d = datetime
1/17/2011 07:00
plot(d,101.745,'ro')

댓글 수: 2

NN
NN 2021년 2월 15일
thank you .Please explain how to use this command in a loop for the entire 6 data .
Cris LaPierre
Cris LaPierre 2021년 2월 15일
You wouldn't use a loop. You would use a variable contining all your values.
Share the code you've written so far and we can go from there.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

NN
2021년 2월 15일

댓글:

2021년 2월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by