MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Simulink中的整数到二进制转换 (https://www.labfans.com/bbs/showthread.php?t=26527)

poster 2019-12-14 20:13

Simulink中的整数到二进制转换
 
我知道这是一个非常基本的问题。但是,我仍然在Simulink中努力将Binary转换为Integer,反之亦然。

我可以使用功能块,并使用内置的Matlab函数来实现。但是我打算使用Simulink块将Binary转换为十进制数。

请建议我该怎么做,否则互联网上的任何指点都会有所帮助。



[B]回答:[/B]

您可以使用[URL="http://www.mathworks.com/help/toolbox/simulink/slref/datatypeconversion.html"][B]Conversion模块[/B][/URL]在二进制(即boolean )类型和各种整数( int8 , uint8 , int16等)或浮点数( single或double int16 )之间来回转换。



[url=https://stackoverflow.com/questions/5230914]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 11:00

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.