cvt2hex.m
来自「TigerSharc TS201 32-bit floating point F」· M 代码 · 共 15 行
M
15 行
function [x_hex] = cvt2hex(x)
%this function transforms the input x into a natural number ready
%to be saved in fixed point format
if x==1
x_hex=2^15-1;
elseif x>=0
x_hex=round(2^15*x);
else
x_hex=round(2^16+2^15*x);
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?