Acessing object properties is not working
Mostrar comentarios más antiguos
I seem to be to stupid to create a matlab object. Here is my file "data.m":
classdef data
properties
x=0;
end
methods
function this = data(a)
this.x=1;
end
end
end
When running the code I keep getting the message: "No public field x exists for class data." Also tried changing SetAccess and GetAccess of properties to public.
What am I missing?
Best,
Eddy
Respuestas (1)
Eddy Ilg
el 4 de Abr. de 2014
0 votos
Categorías
Más información sobre Class Introspection and Metadata en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!