To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
how to plot a sine and cosine wave to obtain a graph which have hexadecimal codes as y axis......or any M-file to find the sine and cosine values in hexadecimal...?
t1 = 0:.1:10; y = sin(t1); plot(t1,y); grid on
i know only this one for generation of sine wave.
No products are associated with this question.
After making the plot, you can convert the tick labels to the hex representation of the IEEE bit patterns of the numbers with this:
yticks = get(gca, 'YTick'); set(gca, 'YTickLabel', num2hex(yticks));
doc axes doc num2hex
If, however, you want the hex representation of the numbers themselves (i.e. 0.5(dec) becomes 0.8(hex)) then please say so in a comment, and I'll have a think about it.