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

num2str

it converts number to string like matlab.
(1069 downloads for this version - 1069 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)
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
???