Setting Access Properties for Structured Variable
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Structural Mechanics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!