Home > Archive > Matlab > April 2005 > Number Conversion
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Nilesh Waishampayan 2005-04-25, 8:59 pm |
| Hi,
Ok i will describe it in detail. I input an integer value say K
= 10. Matlab converts it to binary using dec2bin. I specify n = 9,
cuz i want it in that format. SO the string length is 9.The matlab
process it according to my program. Now suppose the value it gets is
k = 6.5, so i want the result to be displayed as 6.5 on the screen.
| |
| Scott Dorsey 2005-04-25, 8:59 pm |
| In article <ef03d5e.3@webx.raydaftYaTP>,
Nilesh Waishampayan <nwaisham@oakland.edu> wrote:
>Hi,
> Ok i will describe it in detail. I input an integer value say K
>= 10. Matlab converts it to binary using dec2bin. I specify n = 9,
>cuz i want it in that format. SO the string length is 9.The matlab
>process it according to my program. Now suppose the value it gets is
>k = 6.5, so i want the result to be displayed as 6.5 on the screen.
The last time this was assigned in your class, there was a large discussion
of it here. A google search will probably turn it up.
--scott
--
"C'est un Nagra. C'est suisse, et tres, tres precis."
|
|
|
|
|