フィルターのクリア

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

4 ビュー (過去 30 日間)
meenu v
meenu v 2019 年 1 月 4 日
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)
Orlando Ramirez-Valle
Orlando Ramirez-Valle 2021 年 3 月 9 日
Thank you, this was very useful to me

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by