Rank: 25659 based on 0 downloads (last 30 days) and 0 files submitted
photo

Vishaka

E-mail
Company/University
IIT-Kharagpur

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Vishaka
Updated File Comments Rating
30 Mar 2009 Converting between text strings and binary vectors Functions to convert from text strings to binary vectors and back again. Author: Rick Rosson

You have introduced a lot of unnecessary conversions in your code for converting from string to vector:
This line suffices for doing the conversion:
binVec = uint8(binStr) - uint8('0');
If you want a double vector, you can just do a double(binVec).

Contact us at files@mathworks.com