MATLAB Answers

how to load a function in AppDesigner?

15 ビュー (過去 30 日間)
Medical Imaging
Medical Imaging 2020 年 5 月 18 日
コメント済み: Medical Imaging 2020 年 7 月 28 日
I am a beginner to appdesigner and i am trying to design my matlab code to load some data which is
load([PTH '/Data.mat']);
the warning I am receiving is "To avoid conflicts with functions on the path, specify variables to load from file." How can I remove thes warning.
  1 件のコメント
Medical Imaging
Medical Imaging 2020 年 5 月 19 日
thank you it helped.

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

採用された回答

TADA
TADA 2020 年 5 月 18 日
Seems to me that the warning is warning you against loading data into the workspace without controlling the variable names. Try to use an output variable so that the data is returned as a struct into that variable instead:
data = load([PTH '/Data.mat']);
% and while your at it, also use fullfile
% instead of concating, to make your code
% work on other platforms as well
data = load(fullfile(PTH, 'Data.mat'));
  3 件のコメント
Medical Imaging
Medical Imaging 2020 年 7 月 28 日
Thank you. it is sbout the initialization of sFOLDERS separately.
I understand it and will post as new question if thread question relevance.
I appreciate.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by