t1=RandomReal[{0,1},{10,2}]/1000000; t1[[2,1]]=0; t2=Map[If[#==0,"0.0000000E+00", ToString@ScientificForm[#,{8,7}, NumberFormat->(ToString@NumberForm[1*ToExpression[#1],{8,7}]<>"E" <> If[-10<1*ToExpression[#3]<0,"-0"<> StringReplace[ToString[-1*ToExpression[#3]],"."->""],#3]&)]]&,t1,{2}] Export["~/test.dat",t2]
Mathematica 教學 數字匯出格式 0.0000000E+00
由 戴忠淵 於 2013年7月26日星期五
上午12:38 發表
讀者回應 ( 0 意見 )
訂閱發佈留言 (Atom)
發佈留言
Please leave your name and tell me what you thought about this site. Comments, suggestions and views are welcomed.
如果這篇文章對你有幫助,那請留個訊息給我~