transform a string with variable length to a matrix
Goebel, Juergen
juergen.goebel at eads.com
Thu Aug 28 02:34:42 CDT 2008
Hi,
Using dec2bin I transform a decimal number to a binary number
with an a priori unknown number of digits. But the next step
offers a little problem for me: I have to transform the resulting
string to a matrix of ones and zeros. Trying a bit with str2mat
like str2mat([a(1);a(2);a(3)] wasn't successful 'cause the
number of digits is variable.
I'm sure some wizard can tell me what I have to do ...
Regards,
Jürgen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080828/1b98611c/attachment.html
More information about the Help-octave
mailing list