简体   繁体   English

使用matlab和excel根据单元格值检索列名

[英]Retrieve column name based on cell value using matlab and excel

在此处输入图片说明

在此处输入图片说明

I use matlab software for programming language.我使用matlab软件进行编程语言。 I stored my data first is color as column & second value as number from Matlab to excel file.我存储我的数据首先是颜色作为列和第二个值作为数字从 Matlab 到 excel 文件。

How can I retrieve color name (column / text /string) where color value as number is greater than 1.6155 for example if my threshold = 1.6155 then i retrieve column name such as ("Merah ma","Kuning","Hijau")如何检索颜色值作为数字大于 1.6155 的颜色名称(列/文本/字符串),例如,如果我的threshold = 1.6155那么我检索列名称,例如 ("Merah ma","Kuning","Hijau")

Apply transpose to your data so that column name such as ("Merah ma","Kuning","Hijau") and their respective values are converted into 2 columns.将转置应用于您的数据,以便将列名称(例如(“Merah ma”、“Kuning”、“Hijau”)及其各自的值转换为 2 列。

Apply a simple condition in 3rd column that if(A2>1.6155,"Match","") and it will display match against those names which have a higher value than your threshold limit.在第 3 列中应用一个简单的条件 if(A2>1.6155,"Match","") 它将显示与那些值高于阈值限制的名称匹配。

For Excel, this will work对于 Excel,这将起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM