Setting Access Properties for Structured Variable
Show older comments
Hi all,
I'm developing a class in which I am defining a structured variable (to keep the class neater) but want to define different Set/Get properties for the variables within the structure. As an example:
properties (SetAccess = protected)
...
tables = struct('sqlQuery',table(),'trainingTable',table(),...
'numericTrainingTable',table());
end
Where I want sqlQuery to have SetAccess = Protected while i want trainingTable and numericTrainingTable to be (SetAccess = public, GetAccess = public).
I hope I explained this clearly enough, is this possible?
Thanks for the help.
AB
Accepted Answer
More Answers (0)
Categories
Find more on Structural Mechanics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!