Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Function handle Problem
Date: Wed, 4 Nov 2009 15:19:03 +0000 (UTC)
Organization: Concordia University
Lines: 17
Message-ID: <hcs617$2d9$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257347943 2473 172.30.248.35 (4 Nov 2009 15:19:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 15:19:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2076687
Xref: news.mathworks.com comp.soft-sys.matlab:582404


Hi,

I have created the following function and need to be passed as a function handle and i am getting some errors. The parameters T and alpha are not visible in my Top.m. Can someone help me out?

% FileName Parameter.m
function[T, alpha] = Parameter()
T = 0.000001; 
alpha = 0.004;
end

%FileName Top.m

fhandle = @Parameter
Q = myfunc(fhandle)

Thanks,
Rajeev