Finding daily maximum & minimum temperature; and time when maximum & minimum temperature occurs
4 次查看(过去 30 天)
显示 更早的评论
I have hourly temperatur data for years. Now I need to find daily maximum & minimum temperature; and time when maximum & minimum temperature occurs.
I don't know how to do that. Any kind of help would be appreciable. Thanks.
0 个评论
回答(1 个)
Bjorn Gustavsson
2020-8-20
It seems to me that something like this reformats your temperature data right and extracts the daily peak temperature and its "hour-index":
[NUM,TXT,RAW]=xlsread('Hourly Temperature.xlsx');
imagesc(reshape(NUM(:,2),24,[]))
T = reshape(NUM(:,2),24,[]);
[Tmax,iTmax] = max(T);
hold on
plot(iTmax,'r*')
HTH
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!