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

FileStructure not showing utility functions (on same level as classdef) #104

Closed
GavriYashar opened this issue Feb 14, 2018 · 0 comments
Closed

Comments

@GavriYashar
Copy link
Owner

GavriYashar commented Feb 14, 2018

doc mustBeInRange

Property Validation Functions

classdef ImData
   properties
      Data {mustBeNumeric, mustBeInRange(Data,[0,255])} = 0
   end
end
function mustBeInRange(a,b)
   if any(a(:) < b(1)) || any(a(:) > b(2))
      error(['Value assigned to Data property is not in range ',...
         num2str(b(1)),'...',num2str(b(2))])
   end
end

Property Validation Functions (Utility Functions)

@GavriYashar GavriYashar changed the title FileStructure not showing methods on same level as classdef FileStructure not showing utility functions (on same level as classdef) Mar 6, 2018
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

1 participant