首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Matlab > find_closest_sorted: Return the index of a closest value in a sorted matrix.

find_closest_sorted: Return the index of a closest value in a sorted matrix.

  • 资源大小:1.14 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Matlab

资 源 简 介

%FINDu CLOSESTu SORTED返回排序矩阵中最近值的索引。%%说明:%%FINDu CLOSEST返回最后一项x的索引,该索引以升序%(降序)排序,相对于线性索引,%满足条件x值(x>;值)使用二进制搜索。如果%有多个元素具有最接近的值,则返回第一个%元素的索引。如果给定矩阵为空,则返回值0。%n用法:%index=findu closest(vector,value)%%INPUTS:%vector-to search的矩阵%%value-to find的值%%输出:%index;-最接近匹配的索引
VIP VIP
0.214705s