From: pj110 on
Hi ,

I am tring to model an induction motot using s-function in matlab.I have written M-file but the output of the system in not similar to what it is in references.Can anyone have done this befor?Im wondering if someone can give me some hints or a source code.

cheers,

pj
From: Steven Lord on

"pj110 " <ppj(a)gmail.com> wrote in message
news:humkpq$ec9$1(a)fred.mathworks.com...
> Hi ,
>
> I am tring to model an induction motot using s-function in matlab.I have
> written M-file but the output of the system in not similar to what it is
> in references.

That would seem to indicate you've got some debugging to do.

> Can anyone have done this befor?

I would imagine that _someone_ has modeled a motor before.

> Im wondering if someone can give me some hints or a source code.

Use the debugging tools described in this section of the documentation to
make sure each piece of your S-function returns the correct result.

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/f2-4931.html

I don't write S-functions, so I don't have any more specific advice than
that. If you're looking for more specific help from someone else, you'll
need to show your code.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com