Thread Subject: Function calling

Subject: Function calling

From: Mario Fatafehi

Date: 13 Mar, 2010 12:42:03

Message: 1 of 2

I have a function named fun saved in a function file. I want to call this function from an m file called work with inputs for the function files. I have tried fun(3,5) but it is not working. Matlab command window says The expression to the left of the equals sign is not a valid target for an assignment.

Subject: Function calling

From: Mario Fatafehi

Date: 13 Mar, 2010 13:35:24

Message: 2 of 2

"Mario Fatafehi" <coruba9@hotmail.com> wrote in message <hng16r$8p4$1@fred.mathworks.com>...
> I have a function named fun saved in a function file. I want to call this function from an m file called work with inputs for the function files. I have tried fun(3,5) but it is not working. Matlab command window says The expression to the left of the equals sign is not a valid target for an assignment.

I have fixed it. Not a problem.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com