How to read values from excel file with mobile matlab app?

조회 수: 2 (최근 30일)
Kalin Chuchuganov
Kalin Chuchuganov 2023년 12월 12일
댓글: Kalin Chuchuganov 2023년 12월 13일
Hi, I want to read values from Excel file with the Matlab mobile app but It seems to do not read correctly! With the same code on PC works fine! What can be the reason? filename = 'Acceleration.xls'; sheet = 'Raw Data'; xlRange = 'D:D'; columnD = xlsread(filename,sheet,xlRange)
  댓글 수: 9
Walter Roberson
Walter Roberson 2023년 12월 13일
Sorry, I overlooked the range too. readmatrix()
You will probably need
columnD = readmatrix(filename, 'sheet', sheet, 'Range', xlRange)
Kalin Chuchuganov
Kalin Chuchuganov 2023년 12월 13일
Yes, and for removing the first elemnt I use: columnDD=columnD(2:end) and it works.

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

채택된 답변

Mann Baidi
Mann Baidi 2023년 12월 12일
Hi
I understand yow would like to extract values from an Excel file in MATLAB Mobile App.
I would suggest you use alternatives of "xlsread" as it is not recommended by the MATLAB since R2019a. Instead of this, you can try using the "readtable", "readmatrix" or "readcell" function.
For more information, you can take reference from the following link:
Hope this will help!
  댓글 수: 1
Kalin Chuchuganov
Kalin Chuchuganov 2023년 12월 12일
Thank you very much! 'readmatrix' works perfectly. If I may ask one more thing? The column I want to read from the Excel file has a title, and the number of data in it is variable. How can I manage to read from the second cell and read all the rest of the data from the column? Thanks in advance!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by