Different values in command window and workspace from excel file

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 Comments

are you seeing the difference in values for column E?
Just to give you an idea, these are 2 print-screens of the difference I see
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
I feel a bit stupid now! Thank you so much!!

Sign in to comment.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Asked:

on 19 Sep 2019

Commented:

on 19 Sep 2019

Community Treasure Hunt

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

Start Hunting!