Loading mat files does not support enumerations with function handles?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I basically have an enumeration class with one property being a handle. After saving an instance (TestEnum.a) to a mat file and loading it again I am facing the following warning:
Warning: The value of enumeration member 'a' differs from when the enumeration was saved. 'a' will be loaded with the new value.
Why is that the case? I have noticed that this does not happen in case the property is anything else?
classdef TestEnum
properties
hdl
end
enumeration
a (@(x) x)
end
methods
function obj = TestEnum(hdl)
obj.hdl = hdl;
end
end
end
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Data Type Identification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!