필터 지우기
필터 지우기

how to plot date and time on x axis and data on yaxis from excel sheet using MATLAB

조회 수: 4 (최근 30일)
Capture.JPG
help plot IST on Xaxis and Z on Yaxis?

답변 (1개)

KSSV
KSSV 2019년 1월 4일
편집: KSSV 2019년 1월 4일
Read about readtable
T = readtable('BookP.xlsx') ;
plot(T.(1),T.(2)) % Pick the index you want T.(i)
% plot whole data
T = readtable('BookP.xlsx') ;
plot(T.(1),T{:,2:end}) ;
str = properties(T) ;
legend(str)
  댓글 수: 3
KSSV
KSSV 2019년 1월 4일
[num,txt,raw] = xlsread('BookP.xlsx') ;
thedates = datetime(raw(2:end,1)) ;
str = txt(1,2:end) ;
plot(thedates,num)
legend(str)

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

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by