Integer to Integer map using logical indexing

版本 1.0.0.0 (920 字节) 作者: Sathyanarayan Rao
Logical indexing is used to map integer from one set to another
15.0 次下载
更新时间 2017/8/30

查看许可证

Given two sets of integer, integer is mapped from one set to another. The author acknowledges Stephen Cobeldick
for his suggestion on using ismember to perform same task
[~,idx] = ismember(A,map2);
B = map1(idx);

引用格式

Sathyanarayan Rao (2024). Integer to Integer map using logical indexing (https://www.mathworks.com/matlabcentral/fileexchange/64282-integer-to-integer-map-using-logical-indexing), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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