Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading a private property of movie.m #179

Closed
dshimaoka opened this issue Sep 28, 2021 · 2 comments
Closed

Reading a private property of movie.m #179

dshimaoka opened this issue Sep 28, 2021 · 2 comments

Comments

@dshimaoka
Copy link
Collaborator

To trigger a digital signal at a desired condition, I wish to access a private property (fracFrameCntr) inside an eScript.

One way to do this is to change this property to GetAccess = public and SetAccess = private.

Another way is to make a function like below:

methods (Access = public)
       function v = getFracFrameCntr(o)
           v = o.fracFrameCntr;
       end

Which way is more preferable?

@bartkrekelberg
Copy link
Member

For this purpose (public read access only) just changing the property GetAccess/SetAccess is the right way to do it.

@dshimaoka
Copy link
Collaborator Author

thanks for the suggestion. A new pull request will soon follow.

dshimaoka added a commit to dshimaoka/neurostim that referenced this issue Sep 29, 2021
assigned getAccess, based on the discussion klabhub#179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants