Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: conversion from double to char
Replies: 1   Last Post: Mar 11, 2013 3:57 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
James Tursa

Posts: 2,071
Registered: 8/5/09
Re: conversion from double to char
Posted: Mar 11, 2013 3:57 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Timothy Koh" <timothy_koh87@hotmail.com> wrote in message <khk1ff$eur$1@newscl01ah.mathworks.com>...
> Hi
>
> Anyone know how to convert 1 1 1 0 0 0 <1x6 double> to 111000 <1x6 char>?


d = [1 1 1 0 0 0];
c = char(d+'0');

James Tursa



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.