Matlab - String Manipulation                                                      Home : www.sharetechnote.com

 

 

 

num2str

 

Ex 1 >

    num2str(1.234);

 

 

strcat

 

Ex 1 >

    strcat('x = ','1.234')

 

 

Ex 2 >

    strcat('x0 = ',num2str(1.2),' ; ','r = ',num2str(3.5))