CLIP2:CLIP2 限制数组中的值。-matlab开发

时间:2021-06-01 12:29:16
【文件属性】:
文件名称:CLIP2:CLIP2 限制数组中的值。-matlab开发
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-01 12:29:16
matlab CLIP2 限制数组中的值Y = CLIP2(A,x_min,x_max) 生成一个数组 Y,其中的值在限制 (x_min, x_max) 被剪裁到间隔边缘。 A 是一个矩阵x_min 和 x_max 是标量值。 Y的大小是一样的大小作为一个。 Y = CLIP2(A,x_min,x_max,'DisplayAsNans') 就像 CLIP2(A,x_min,x_max) 但超出限制的值将替换为 nans。 例如, x = (1:100)'; x_min = 15; x_max = 47; y = clip2(x,x_min,x_max) x = ceil(100*rand(10)); x_min = 5; x_max = 25; y = clip2(x,x_min,x_max) t = (0:1e-2:5)'; x = 3.5*sin(2*pi*t); x_min = 0; x_m
【文件预览】:
clip2.zip

网友评论