Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jbbraley/classy

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matlab class definition magic

classy.m is a matlab classdef utility function.

Notes:

examples

create a stand-alone custom class

create instance of classy

c = classy()

view methods

methods(c)

change the name of your custom class

c.name = 'myclass';

note that the dependent property 'fullname' was updated - view this with c.fullname

generate class definition code in default C:\Temp directory note: by passing a false boolean to the create() method we are saying that we do not want to create the class folder @myclass

c.create(0)

create a custom class - folder version

begin with the same basic process as a stand-alone class

c = classy();
c.name = 'myclass';

when creating the full class folder and file either call the create() method with no inputs or explicitly pass a true boolean

c.create() % c.create(1) works also

this creates the folder @myclass and places the classdef file myclass.m inside of it (or appended if you messed up and called it twice).

note that the c.fullname property was updated after the create() method was called but not before

TODO

  • write method needs to check for self.prop and self.propd then incorporate that into the self.create()

About

matlab classdef magic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • MATLAB 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.