Code Monkey home page Code Monkey logo

classy's Introduction

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()

classy's People

Contributors

johndevitis avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.