MATLAB Answers

how to open mat file

3 views (last 30 days)
Hi all,
can anyone help me how to open mat file in MATLAB.
so that i can change some data.
i used this script as below
folder = 'C:\Users\Akmal\Downloads\NUKDOS_code\NUKDOS EXE'; % You specify this!
fullMatFileName = fullfile(folder, 'Murrat_Mustermann_1223_Case.mat')
if ~exist(fullMatFileName, 'file')
message = sprintf('%s does not exist', fullMatFileName);
uiwait(warndlg(message));
else
s = load(fullMatFileName);
end
but error pop up below
Warning: Variable 'controller' originally saved as a dataProvider cannot be instantiated as an
object and will be read in as a uint32.
> In openmatfile (line 7)
Please help me.

Accepted Answer

Walter Roberson
Walter Roberson on 31 Dec 2020
You need to add the class dataProvider to the MATLAB path before you load the file, if you need to load variable controller .
If you do not need variable controller then ignore the message, as it is a warning rather than an error.
  8 Comments
Walter Roberson
Walter Roberson on 31 Dec 2020
No, just add the directory to your MATLAB path.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!