| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → EDA Simulator Link |
| Contents | Index |
| Learn more about EDA Link Simulator |
dec2mvl(d)
dec2mvl(d,n)
dec2mvl(d) returns the binary representation of d as a multivalued logic string. d must be an integer smaller than 2^52.
dec2mvl(d,n) produces a binary representation with at least n bits.
The following function call returns the string '10111':
dec2mvl(23)
The following function call returns the string '01001':
dec2mvl(-23)
The following function call returns the string '11101001':
dec2mvl(-23,8)
![]() | configuremodelsim | hdldaemon | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |