Different values in command window and workspace from excel file

조회 수: 1 (최근 30일)
Daphne PARLIARI
Daphne PARLIARI 2019년 9월 19일
댓글: Daphne PARLIARI 2019년 9월 19일
Hi everyone.
I am new to this filed and I'm trying to do a rather simple task but with bad result. I would apreciate your expertise on this:
I want to read an xlsx file with matlbab (Experiment.xlsx, please see attached) with
filename = 'Experiment.xlsx';
A = xlsread(filename)
The problem is that, what is shown in Command Window is totally different (and wrong) from what is shown on Workspace (which is exactly what I see in the excel file and it's corect).
Thanks everyone in advance for your time.
  댓글 수: 4
Ankit
Ankit 2019년 9월 19일
this difference is due to the display format. Values are same in workspace as well as in command window.
just try this
format short g
filename = 'Experiment.xlsx';
A = xlsread(filename);
have a look here:
cheers
Ankit
Daphne PARLIARI
Daphne PARLIARI 2019년 9월 19일
I feel a bit stupid now! Thank you so much!!

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by