Matlab 查找不重叠的范围
我有两个向量Matlab 查找不重叠的范围,matlab,compare,intervals,bsxfun,Matlab,Compare,Intervals,Bsxfun,我有两个向量 Upper_bound = [421.1706;418.7937;425.9144;431.7096]; Lower_bound = [376.0487;395.4193;402.7083;419.0457]; 表示4次测量的95%置信区间(A、B、C、D)。 如何自动计算度量之间是否存在显著差异(即95%置信区间不重叠) 我的首选输出是: sign_diff = [0 0 0 0; 0 0 0 1; 0 0 0 0
Upper_bound = [421.1706;418.7937;425.9144;431.7096];
Lower_bound = [376.0487;395.4193;402.7083;419.0457];
表示4次测量的95%置信区间(A、B、C、D
)。
如何自动计算度量之间是否存在显著差异(即95%置信区间不重叠)
我的首选输出是:
sign_diff = [0 0 0 0;
0 0 0 1;
0 0 0 0;
0 1 0 0];
表示A与A、B、C、D没有区别
B与A、B、C没有区别,但与D不同
等等
谢谢您可以使用来进行计算
sign_diff = bsxfun( @ge, Lower_bound, Upper_bound' ) |...
bsxfun( @le, Upper_bound, Lower_bound' )
结果如下:
sign_diff =
0 0 0 0
0 0 0 1
0 0 0 0
0 1 0 0
您可以使用来进行计算
sign_diff = bsxfun( @ge, Lower_bound, Upper_bound' ) |...
bsxfun( @le, Upper_bound, Lower_bound' )
结果如下:
sign_diff =
0 0 0 0
0 0 0 1
0 0 0 0
0 1 0 0
您可以使用来进行计算
sign_diff = bsxfun( @ge, Lower_bound, Upper_bound' ) |...
bsxfun( @le, Upper_bound, Lower_bound' )
结果如下:
sign_diff =
0 0 0 0
0 0 0 1
0 0 0 0
0 1 0 0
您可以使用来进行计算
sign_diff = bsxfun( @ge, Lower_bound, Upper_bound' ) |...
bsxfun( @le, Upper_bound, Lower_bound' )
结果如下:
sign_diff =
0 0 0 0
0 0 0 1
0 0 0 0
0 1 0 0
采取:
我还不能发表评论,所以我将其作为答案发布。拍摄:
我还不能发表评论,所以我将其作为答案发布。拍摄:
我还不能发表评论,所以我将其作为答案发布。拍摄:
我还不能评论,所以我把它作为答案发布。听起来像是一个反问题(ax=b)?听起来像是一个反问题(ax=b)?听起来像是一个反问题(ax=b)?@gabboshow我不小心把上下限混在了一起。请看我的edit@gabboshow我不小心混淆了上下限。请看我的edit@gabboshow我不小心混淆了上下限。请看我的edit@gabboshow我不小心混淆了上下限。请看我的编辑