The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to call member function of class in another m file in matlab?
Replies: 1   Last Post: Aug 12, 2014 12:52 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 2,237
Registered: 9/26/13
Re: How to call member function of class in another m file in matlab?
Posted: Aug 12, 2014 12:52 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"foozhan " <> wrote in message
> How can call class function,and initialize object of class in another
> file.m , when calling from command window its work but I wanna call
> function from m file.
> i have folder:@myClassName.

If it's a static method, use the class name.
If it's an instance ("ordinary") method, construct an instance of the class
then pass that instance as one of the inputs to the method.

Steve Lord
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.