reshape_daily

版本 1.3.1 (137.6 KB) 作者: Chad Greene
Reshape daily time series between 1D and calendar-like 3D matrices.
632.0 次下载
更新时间 2019/5/20

查看许可证

This function aids in analysis of multi-year time series by reshaping daily data sets from 1D to 3D or from 3D to 1D. 3D time series coordinates correspond to DAYSxMONTHSxYEARS and will always be 31x12xNUMBEROFYEARS. Missing data values and non-real days (e.g. April 31) are replaced by NaNs.
SYNTAX
[s,t] = reshape_daily(s,t)
[s,t,year,month,day] = reshape_daily(s,t)
DESCRIPTION
[s,t] = reshape_daily(s,t) returns reshaped time series arrays corresponding to time t and the signal S. If input arrays are Nx1 or 1xN, 3D arrays s and T are returned. If input arrays are 3D, Nx1 arrays are returned. Time array t must be in datenum format.

[s,t,year,month,day] = reshape_daily(s,t) also returns year, month, and day arrays corresponding to t.

引用格式

Chad Greene (2024). reshape_daily (https://www.mathworks.com/matlabcentral/fileexchange/46508-reshape_daily), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Resizing and Reshaping Matrices 的更多信息
致谢

启发作品: downsample_ts

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.3.1

Added live scripts

1.3.0.0

Demo file.

1.2.0.0

Demo file edits.

1.1.0.0

Demo file inclusion.

1.0.0.0