Path: news.mathworks.com!not-for-mail
From: "Phil Goddard" <philNOSPAM@goddardconsulting.ca>
Newsgroups: comp.soft-sys.matlab
Subject: Re: s-function, parameter
Date: Tue, 27 Oct 2009 20:12:22 +0000 (UTC)
Organization: Goddard Consulting
Lines: 14
Message-ID: <hc7k76$5vf$1@fred.mathworks.com>
References: <hc6l8j$4k0$1@fred.mathworks.com>
Reply-To: "Phil Goddard" <philNOSPAM@goddardconsulting.ca>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256674342 6127 172.30.248.38 (27 Oct 2009 20:12:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 27 Oct 2009 20:12:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 26433
Xref: news.mathworks.com comp.soft-sys.matlab:580436



You need to be more precise in describing what you mean by
> It seems as if the s-function cannot handle this if-construction or the if-construction doesn't recognize the parameter "L". If i calculate "PFD" without the if-construction it works. What is wrong? Please help me ;-)

Is it erroring out?
If so what is the error message?

Or are you not calculating PFD even if you are _seemingly_ inputting L=1 or L=3?
In which case you should look at Section 6.1 of the FAQ:
http://matlabwiki.mathworks.com/MATLAB_FAQ

Or is it something else?

Phil.