cordic angles in hexadecimal format
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (2)
C.J. Harris
on 6 Jan 2012
See:
doc num2hex
Please note that your answers will be stored as strings.
0 Comments
Walter Roberson
on 6 Jan 2012
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
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!