cordic angles in hexadecimal format

hello sir..
i am doing a project on cordic so can you please help me how to convert the angle in to hexadecimal format.I don't know how to convert when there is a decimal point in the number.Also i want the sin and cosine angles in hexadecimal format.
45, 26.565, 14.036, 7.125, 3.576, 1.7876, 0.8938, 0.4469, 0.2238, 0.1119, 0.05595, 0.02798, 0.01399, 0.00699, 0.00349, 0.00175, 0.000874 ...... in degrees
0.7854, 0.4636, 0.2450, 0.1244, 0.0624, 0.0312, 0.0156, 0.0078, 0.0039, 0.0019, 0.00098, 0.00049, 0.00024, 0.00012, 0.000061, 0.000031, 0.0000152 ........ in radiant
i want these angels to be converted in to hexadecimal format so that i can create a look up table for these values.

답변 (2개)

C.J. Harris
C.J. Harris 2012년 1월 6일

0 개 추천

See:
doc num2hex
Please note that your answers will be stored as strings.
Walter Roberson
Walter Roberson 2012년 1월 6일

0 개 추천

You need to define the fraction representation in hex. The solution Chris mentions, num2hex, is for the IEEE 754 binary representation, which is only one of many valid representations

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2012년 1월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by