2011-04-12 129 views
1

我有一個矩陣,說:轉換的指數矩陣爲數量矩陣

corr_a1=[6 2.150000e+003 0 1.175000e+003 3.250000e+000 4.500000e+001]

我想上述數值轉換爲十進制格式,即

a=[6.00 2150.00 1175.00 3.25 45.00]

怎麼辦我這樣做?

+0

重複:[是否有可能在matlab中顯式格式化輸出數字?](http://stackoverflow.com/questions/1759982/is-it-possible-in-matlab-to-explicitly-format-the-輸出數字),[如何顯示一定數量的小數位](http://stackoverflow.com/questions/4211371/how-to-show-certain-number-of-decimal-digits),[如何顯示在Matlab中有n個小數位。](http://stackoverflow.com/questions/5149348/how-to-display-with-n-decimal-places-in-matlab) – gnovice 2011-04-12 14:32:07

回答