how to multiply two columns with hexadecimal data in a table
6 ビュー (過去 30 日間)
古いコメントを表示
Padmamalini T H
2020 年 1 月 29 日
回答済み: Vinai Datta Thatiparthi
2020 年 2 月 3 日
i imported the above table which has hexadecimal data. i need to multiply column6 and column7 and convert them to decimal.
i used the following code,
c = x(:,6).*x(:,7)
but it is not working.
can someone please. i searched everwhere and dint get an answer. please reply if anyone knows the answer.
0 件のコメント
採用された回答
Vinai Datta Thatiparthi
2020 年 2 月 3 日
Hello,
Use the MATLAB function hex2dec to convert text representation of a hexadecimal number into a decimal number first. After this step, your code should work fine.
Hope this helps!
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!