Calling of functions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
SGM
Reply | Threaded
Open this post in threaded view
|

Calling of functions

SGM
Hi All,
I am unable pass arguments during function calling. 

Getting following error message
image.png

will appreciate help on this.

Regards,
Swagata



abc2dq.m (504 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Calling of functions

James Sherman

On Sat, Apr 10, 2021 at 12:32 PM swagata Mukherjee <[hidden email]> wrote:
Hi All,
I am unable pass arguments during function calling. 

Getting following error message
image.png

will appreciate help on this.

Regards,
Swagata


Hi Swagata,

You need to actually give values for x and theta, when you call the function, like this

abc2dq([1 2 3], pi)

Also, just a heads up, but octave is case sensitive.

Hope this helps,

James Sherman