필터 지우기
필터 지우기

Chinese character in the description

조회 수: 2 (최근 30일)
Steve
Steve 2011년 11월 18일
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?
The codes as below:
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.
  댓글 수: 1
Jan
Jan 2011년 11월 18일
What do you want to achieve? Do you want to see the Chinese characters or replace the strings with English terms? What are the actual troubles?

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2011년 11월 18일
Perhaps this helps:
PS. I don't know why the images are displayed with enlarged size in this forum.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 11월 18일
Paste the original HackChina source into Google Translate, set the language to translate from to Chinese, and the wording will become clear.
  댓글 수: 1
Steve
Steve 2011년 11월 18일
Way tried, but not working. Still code still same after I translated it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by