Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1467
Number of posts: 2144

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Getting Chinese Character in the Graph Posted by IamNew on 18 Nov 2011 at 4:36 AM
Hi there, I am newbie to matlab. The code that I had run is purpose of generating a optimization graph and it gave me the description in chinese. How do I troubleshoot it?

function m=drawTSP(Clist,BSF,bsf,p,f)
CityNum=size(Clist,1);
for i=1:CityNum-1
    plot([Clist(BSF(i),1),Clist(BSF(i+1),1)],[Clist(BSF(i),2),Clist(BSF(i+1),2)],'ms-','LineWidth',2,'MarkerEdgeColor','k','MarkerFaceColor','g');
    hold on;
end
axis([0,1,0,1]);
plot([Clist(BSF(CityNum),1),Clist(BSF(1),1)],[Clist(BSF(CityNum),2),Clist(BSF(1),2)],'ms-','LineWidth',2,'MarkerEdgeColor','k','MarkerFaceColor','g');
title([num2str(CityNum),'³ÇÊÐTSP']);
if f==0
    text(0.1,0.1,['µÚ ',int2str(p),' ²½','  ×î¶Ì¾àÀëΪ ',num2str(bsf)]);
else
    text(0.1,0.1,['×îÖÕËÑË÷½á¹û£º×î¶Ì¾àÀë ',num2str(bsf)]);
end
hold off;
pause(0.05); 


Please guide me.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.