| Fixed-Point Toolbox™ | ![]() |
c = bitreplicate(a, n)
c = bitreplicate(a, n) concatenates the bits in fi object a n times and returns an unsigned fixed value with a word length equal to n times the word length of a and a fraction length of zero. The bit representation of the stored integer is in two's complement representation.
The input fi object can be signed or unsigned. bitreplicate concatenates signed and unsigned bits the same way.
bitreplicate only supports fi objects with fixed-point data types.
bitreplicate does not support inputs with complex data types.
Sign and scaling of the input fi object does not affect the result type and value.
bitand, bitconcat, bitget, bitset, bitor, bitsliceget, bitxor
![]() | bitorreduce | bitrol | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |