Import data from Excel to Matlab GUI

조회 수: 8 (최근 30일)
Miss B
Miss B 2020년 4월 22일
편집: Miss B 2020년 4월 22일
Hi everyone!
Hope all is well!
I have a slight problem with uploading my excel file that includes TEXT and NUMBER to Matlab GUI (Uitable).
On my excel file i had TWO columns, 1st column in text format and the 2nd column in number format.
As shown below it only displays the second column NOT the first column.
I typed this on the command window on Matlab GUI:
>> data = xlsread('height.xlsx');
>> data
data =
55
83
79
40
58

채택된 답변

Adam Danz
Adam Danz 2020년 4월 22일
xlsread returns the numeric data in a matrix. The first column of your data are not numeric.
Use readtable() instead.
  댓글 수: 6
Miss B
Miss B 2020년 4월 22일
Thank you very much yet again!
Your help and support is immensely appreciated.
Adam Danz
Adam Danz 2020년 4월 22일
Glad I could help!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by