June 25,2007
Scilab 中文測試範例
Scilab 中文測試範例 :
LANG=zh_TW.UTF8
Test 1-7 成功(2007/07/03)
LANG=zh_TW.BIG5
Test2 失敗 ,其餘失敗 (2007/07/03)
//
//Test1. 註解輸入測試
//
//Test2. 繪圖中文標示
//
x=[0:0.1:2*%pi]';
plot2d(x,sin(x),leg="正弦 sin(x)")
//
//Test3. 中文 write
//
write(%io(2),'中文 write')
//
//Test4.. 中文 Print
//
a=rand(3,3);p=poly([1,2,3],'s');l=list(1,'中文 Print',[1 2 3]);
print(%io(2),a,p,l)
// Test 5 中文檔案輸出
b=%pi;
[fd,err]=mopen('chTestBig5.txt','w');
mfprintf(fd,'%s %f','中文檔案輸出入測試',b); mclose(fd);
//Test 6 中文檔案輸入
[fd,err]=mopen('chTestBig5.txt','r');
[n,c,d]=mfscanf(fd,'%s %f') ; mclose(fd);
// Test 7 Scicos text block 中 輸入中文
引用URL
http://cgi.blog.roodo.com/trackback/3524817