MATLAB Answers

Variable 'data' originally saved as a dat cannot be instantiated as an object and will be read in as a uint32

21 views (last 30 days)
Hyun Geun Shim
Hyun Geun Shim on 19 Nov 2020
Answered: Priysha LNU on 24 Nov 2020
I copied a coad from computer A, but it doesn't work in computer B.
When I ran the code, there is an error messege poped up, "Variable 'data' originally saved as a dat cannot be instantiated as an object and will be read in as a uint32".
Why was the dat file converted to into uint32 and how can I solve?

Accepted Answer

Priysha LNU
Priysha LNU on 24 Nov 2020
Hi,
The issue is due to the fact that you are trying to load a saved object when the class definition file is no longer on the MATLAB path.
Refer to the following post on MATLAB Answers on how this can be prevented:
Hope this helps!
DISCLAIMER: These are my own views and in no way depict those of MathWorks.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!