how to multiply two columns with hexadecimal data in a table
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Padmamalini T H
el 29 de En. de 2020
Respondida: Vinai Datta Thatiparthi
el 3 de Feb. de 2020
![pic.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/269011/pic.png)
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 comentarios
Respuesta aceptada
Vinai Datta Thatiparthi
el 3 de Feb. de 2020
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!