Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | ATOMS
File : Details
Login with GitLab

num2str

it converts number to string like matlab.
(2450 downloads for this version - 2450 downloads for all versions)
Details
Version
1.0
Author
Surendra Yadav
Maintainer
Surendra Yadav
Category
License
Supported Scilab Version
Creation Date
April 21, 2016
Description
            it convert number to string like matlab. use the command 
exec("num2str.sci",-1) for defining the function.            
Files (1)
[806 bytes]
Miscellaneous file
	  
News (0)
Comments (1)     Leave a comment 
Comment from Samuel Gougeon -- May 6, 2016, 07:49:24 PM    
???
string() already does it:
--> M = [1 1e3*%pi -%e*1e-34 7e300]
 M  = 
   1.   3141.5927   0.   7.00D+300

--> string(M)
 ans  =
!1  3141.5927  -2.718D-34  7.00D+300  !

--> num2str(M)  // your implementation
 ans  =
 0000000000000000000000000030001000400011
???
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.