本文介绍: The dates are spaced one calendar month apart. However, the months have different lengths, so the usage data is spaced slightly unevenly. To use the dates as sample points, you need to specify the window length as a duration.附加练习有何不同,”SamplePoints“,到底该怎么用?
MATLAB Fundamentals>Common Data Analysis Techniques>Smoothing Data> (3/5) Smoothing Electricity Data
数据准备:This code sets up the activity.
说明1:
The table edata
contains monthly electricity usage, in MWh, for the U.S., separated by sector. The matrix sectorUsage
contains the consumption for three sectors (residential, commercial, and industrial). The vector total
contains the total consumption. The months are stored in the datetime vector dates
.
You can smooth the data using the smooth data function.
When the data are evenly sampled, you do not need to specify the sample points.
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。