bug? cant change the format of an array variable column
조회 수: 1 (최근 30일)
이전 댓글 표시
I have imported data from xls into a double array variable called price,I have gone onto the variable window to change the format of the column to short fixed decimal however the format of the column does not change, some values are still scientific looking. I have tried the code format short but this only fixes the command window results, my issue is when I plot the price on a chart it shows the scienfific scale and not the actual numbers, I have tried ytickformat('%.2f') but this does not work for me. What am I doing wrong?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/230600/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/230601/image.png)
댓글 수: 0
채택된 답변
Star Strider
2019년 7월 20일
set(gca, 'Exponent',2)
may work.
Experiment to get the result you want.
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Formatting and Annotation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!