dlmread shows incorrect data after using disp

조회 수: 7 (최근 30일)
john ult
john ult 2019년 3월 16일
댓글: john ult 2019년 3월 16일
Hi,
I'm still learning and currently going through a problem with dlmread . It seems like it does read my text properly.
My data.txt contains :
2019 3 3 2 58 1.5 2.6
Note: it has multiple similar lines for previous years.
my program :
B = dlmread('data.txt');
disp(B);
Getting this output :
1.0e+03 *
2.0100 0.0030 0.0030 0.0020 0.0580 0.0015 0.0026
Is this working as expected? Is it possible to show the original data in the output " 2019 3 3 2 58 1.5 2.6"?
Thanks for the help the guys in advanced
Regards,
John

채택된 답변

madhan ravi
madhan ravi 2019년 3월 16일
format longg % at the beginning of the script
  댓글 수: 1
john ult
john ult 2019년 3월 16일
Thank Madhan for quick reply and it works :). Have a great weekend !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by