outselect.m:选择或重新排序任何函数的输出参数。-matlab开发

时间:2021-06-01 20:35:06
【文件属性】:
文件名称:outselect.m:选择或重新排序任何函数的输出参数。-matlab开发
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-01 20:35:06
matlab 有时,您只需要 MATLAB 函数的第 k 个输出参数,其中 k>1。 此函数 OUTSELECT 提供此功能作为任何其他函数的“包装器”。 它可以立即评估和返回参数,或者创建一个新的可调用函数。 例如: >> str = 'deacb'; [s,idx] = 排序(字符串) s = abcde idx = 3 5 4 1 2 >> [idx,s] = outselect([2 1],@sort,str) idx = 3 5 4 1 2 s = abcde >> argmin = outselect(2,@min); >> 精氨酸(字符串) 答案 = 3
【文件预览】:
outselect.zip

网友评论