2013-08-08 4 views
1

내가하려는 것은 비교적 간단합니다. MATLAB 행렬의 디스플레이에서 공통 요소 제거

faulty matrix display

보시다시피

,이 행렬은 모든 용어가 1.0E + 04을 곱한되도록 같은 표시되고있다. 이 기능을 사용하지 않고 "실제"숫자를 확인하고 싶습니다.

+2

은 (당신이 ['format']을 설정하는 것을 시도했다 http://www.mathworks.se/ help/matlab/ref/format.html), 예를 들면 'format shortG' 또는'format longG'? – hooy

+0

shortG가 작동 중입니다 – Sadiq

답변

2

format 명령으로 문제를 해결할 수 있습니다. 워드 프로세서에서 :

FORMAT SHORT  Scaled fixed point format with 5 digits. 
    FORMAT LONG  Scaled fixed point format with 15 digits for double 
        and 7 digits for single. 

이이 기본값이며, 당신이 원하는 것은 :

FORMAT SHORTG Best of fixed or floating point format with 5 
        digits. 
    FORMAT LONGG  Best of fixed or floating point format with 15 
        digits for double and 7 digits for single. 
+0

그랬습니다. 이제 해결되었습니다. – Sadiq