首页 > 编程知识 正文

scaling matlab,Scaling - MATLAB & Simulink - MathWorks 中国

时间:2023-05-06 14:34:56 阅读:150420 作者:1035

缩放

fixed-pointnumberscanbeencodedaccordingtothescheme

real-worldvalue=(slopeinteger ) bias

where the slope can be expressed as

slope=slopeadjustmentfactor2固定扩展

theintegerissometimescalledthestoredinteger.thisistheraw

binary number,inwhichthebinarypointassumedtobeatthefarrightoftheword.in

fixed-pointdesignerdocumentation,thenegativeofthefixedexponentisoftenreferredtoasthe

函数长度。

theslopeandbiastogetherrepresentthescalingofthefixed-point number.inanumber

with zero bias,onlytheslopeaffectsthescaling.a fixed-pointnumberthatisonlyscaled

bybinarypointpositionisequivalenttoanumberin [ slope bias ] representationthathasa

biasequaltozeroandaslopeadjustmentfactorequaltoone.thisisreferredtoasbinary

点- onlyscalingorpower-of-two scaling :

real-world value=2固定扩展integer

or

real-world value=2- fraction lengthinteger

fixed-pointdesignersoftwaresupportsbothbinarypoint-onlyscalingand [ slope bias ]

灌篮。

笔记本

forexamplesofbinarypoint-only scaling,see the Fixed-Point Designer

perform binary-pointscalingexample。

foranexampleofhowtocomputeslopeandbiasinmatlab,see Compute Slope and Bias

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。