binbyte
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: >1.00
Description Converts input array of integers to binary
Arguments and Return Values Parameters: A column vector (one-dimensional, with elements along y axis) specifying integers to convert Return Value: An array of byte values, all either 0 or 1, whose rows each give the binary representation of the corresponding element of the input This function is used by lsqsn to iterate through calls to lsqnn with positive and negative values of forced inputs.
Usage Syntax: binbyte(vector) All values of the input must be nonnegative integers. The input must be a column vector (dimensions [1, n, 1]). When binbyte() is entered without any arguments, it prints its description, as shown below.
Examples dv> binbyte() Converts input integers to binary (array) representation S.Marshall 12-04-2010 dv> a = create(1,11, start=0, format=int) 1x11x1 array of int, bsq format [44 bytes] 0 1 2 3 4 5 6 7 8 9 10 dv> binbyte(a) 4x11x1 array of byte, bsq format [44 bytes] 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 dv> a = create(1,10,2, start=0, format=int) 1x10x2 array of int, bsq format [80 bytes] 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 dv> binbyte(a) Error! Input must be 1-by-n-by-1! 0 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Library Changes Created On: 12-02-2010 |