how to solve this error 'Undefined function or variable 'uiopen'.'

I am facing problem in opening any file in matlab.It is showing this error "Undefined function or variable 'uiopen'." in command window.With this this window is shown in figure.
How can I solve it?

7 件のコメント

Adam Danz
Adam Danz 2020 年 3 月 28 日
Does the problem persist after closeing and reopening Matlab?
Sharing the entire error message printed to the command window may be helpful.
riya shahrin
riya shahrin 2020 年 3 月 28 日
Adam Danz
Adam Danz 2020 年 3 月 28 日
I wonder if your path is corrupt.
which uiopen
% C:\Program Files\MATLAB\R2019b\toolbox\matlab\uitools\uiopen.m
The command above should show the location of the uiopen function. You could search your program files to confirm that you have that file.
riya shahrin
riya shahrin 2020 年 3 月 29 日
My uiopen path is correct.I am having this problem after running xlsread('files','range') this command.It will be very helpfull if you can help me to figure out this problem.
Adam Danz
Adam Danz 2020 年 3 月 29 日
xlsread('files','range') : Just to be clear, you have an xlsx file named "files.xlsx", correct? Because the filename input assumes the extension if it's not provide. Also, is the 2nd input a xlRange or sheet value? If it's a sheet value then it's fine as long as there's a sheet named 'range' but if it's supposed to be an xlRange value, then the input is incorrect.
Nevertheless, I don't know what's causing this error. Is this the only time you receive this error?
Have you tried using readtable instead?
riya shahrin
riya shahrin 2020 年 4 月 4 日
after changing the excel file and its path,my problem was solved.Thanks for helping.
Adam Danz
Adam Danz 2020 年 4 月 4 日
Good! Using full paths is the way to go. In case you're not already aware, fullfile(path, filename) is a useful function.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

製品

リリース

R2018b

質問済み:

2020 年 3 月 28 日

コメント済み:

2020 年 4 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by