Q15 to decimal converter
by Szymon Leja
22 Jan 2008
(Updated 22 Jan 2008)
Silmple function that converts an value from Q15 to decimal.
|
Watch this File
|
| File Information |
| Description |
Converts any Q15 value (hexadecimal or binary) to decimal integer.
y = q152dec(x , form)
Input arguments of function:
x - its hexadecimal or binary representation stored in a MATLAB string
form - dependent on representation of input argument (hexadecimal or binary) take 'hex' or 'bin'
Valu of function:
y - decimal integer
EXAMPLE:
>> q152dec('C000','hex')
ans =
-0.5000 |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 22 Jan 2008 |
Jos x@y.z
|
|
|
| 24 Jan 2008 |
A B
|
|
|
| 23 Feb 2008 |
Dave Hardell
|
|
|
| 24 Feb 2008 |
Szymon Leja
|
|
|
|
Contact us at files@mathworks.com