how to multiply two columns with hexadecimal data in a table
조회 수: 5 (최근 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!