How can I code a consistency function in MATLAB function?

4 次查看(过去 30 天)
Hi, I need suggestions from everybody in order to build a consistency funtion. For example, I have 24 data in a constant block and I want this conistency function to be operated within the last 12 data from the 24 data. I'm confused on how can I code it in the MATLAB function block.
Here is my block diagram.

采纳的回答

SyukriY
SyukriY 2016-10-11
After a few research, I conclude that to get a consistency of a data I should use Standard Deviation calculation.
Because standard deviation is a measure that is used to quantify the amount of variation or dispersion of a set of data values.[1] A low standard deviation indicates that the data points tend to be close to the mean (also called the expected value) of the set, while a high standard deviation indicates that the data points are spread out over a wider range of values.
[1] Bland, J.M.; Altman, D.G. (1996). "Statistics notes: measurement error". BMJ. 312 (7047): 1654. doi:10.1136/bmj.312.7047.1654. PMC 2351401free to read. PMID 8664723.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by