HOWCOMMON

版本 1.0.0.0 (1.9 KB) 作者: Jeff Dunne
Supports data filtering for potentially redundant data streams
711.0 次下载
更新时间 2006/10/16

查看许可证

HOWCOMMON takes a pair of vectors and returns uniquely sampled domains with corresponding values for the range. Unlike functions such as INTERP, however, duplicate domain input values are accepted, and the appropriate type of output can be user specified.

For example, suppose one had:

x = [1 2 3 3 4 5 5 5 ];
y = [10 20 30 31 40 51 52 53];

[domain,num,range] = HOWCOMMON(x,y,'min')

returns:

domain = [1 2 3 4 5 ];
num = [1 1 2 1 3 ];
range = [10 20 30 40 50];

Instead of 'min', one could use:

'max' (range = [10 20 31 40 52])
'mean' (range = [10 20 30.5 40 51])
'sum' (range = [10 20 61 40 153])

引用格式

Jeff Dunne (2024). HOWCOMMON (https://www.mathworks.com/matlabcentral/fileexchange/12633-howcommon), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Vector Volume Data 的更多信息

Community Treasure Hunt

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

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