Error when importing data

조회 수: 1 (최근 30일)
Shamira Sharlyne Liao
Shamira Sharlyne Liao 2023년 2월 6일
댓글: Shamira Sharlyne Liao 2023년 2월 6일
Hello, I'm trying to import an Excel file to MATLAB for school. When I go to Home -> Import Data, the following error shows up.
Execution of script uiimport as a function is not supported:
/Applications/MATLAB_R2021a.app/toolbox/matlab/codetools/uiimport.m
I'm using the latest update and I have the Statistics and Machine Learning Toolbox v.12.1 and Optimization Toolbox v.9.1 installed. This happens no matter what script or filename I use. I also ran
>> which -all uiimport
To get this output
/Applications/MATLAB_R2021a.app/toolbox/matlab/codetools/uiimport.m
Thanks in advance for the help!

채택된 답변

Walter Roberson
Walter Roberson 2023년 2월 6일
you need to reinstall matlab.
dbtype uiimport 1
should show
function varargout = uiimport(varargin)
but on your system it will show something different.
  댓글 수: 1
Shamira Sharlyne Liao
Shamira Sharlyne Liao 2023년 2월 6일
You're right! I reinstalled matlab and it works like a charm now. Thank you so much!

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

추가 답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2023년 2월 6일
Use one of these functions - readmatrix(), readtable(), readcell(), which are recommended. They are efficient and easy to handle large data.
  댓글 수: 1
Shamira Sharlyne Liao
Shamira Sharlyne Liao 2023년 2월 6일
Hi, thanks for the quick reply and for the recommendations! I have looked into those functions, but unfortunately my professor is the type that demands things be done the exact way she taught. I would really appreciate if someone could help troubleshoot the Import Data issue, if possible.

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

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by