Path: news.mathworks.com!not-for-mail
From: "Mario Fatafehi" <coruba9@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Function calling
Date: Sat, 13 Mar 2010 12:42:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 1
Message-ID: <hng16r$8p4$1@fred.mathworks.com>
Reply-To: "Mario Fatafehi" <coruba9@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1268484123 8996 172.30.248.38 (13 Mar 2010 12:42:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Mar 2010 12:42:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2263593
Xref: news.mathworks.com comp.soft-sys.matlab:616495


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.