Path: news.mathworks.com!not-for-mail
From: "meng long" <menglong6518@yeah.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: error in static methods block
Date: Sun, 15 Nov 2009 14:44:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 32
Message-ID: <hdp43i$8t8$1@fred.mathworks.com>
References: <hd3esd$8i9$1@fred.mathworks.com> <hd7l5k$m75$1@fred.mathworks.com>
Reply-To: "meng long" <menglong6518@yeah.net>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258296242 9128 172.30.248.37 (15 Nov 2009 14:44:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 15 Nov 2009 14:44:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 547833
Xref: news.mathworks.com comp.soft-sys.matlab:585237


"Steven Lord" <slord@mathworks.com> wrote in message <hd7l5k$m75$1@fred.mathworks.com>...
> 
> "meng long" <menglong6518@yeah.net> wrote in message 
> news:hd3esd$8i9$1@fred.mathworks.com...
> > In classdef block,  there are a static methods block
> >
> >     methods (Static)
> >           oPath = CrHPath(dCdPrdt);
> 
> This needs to be the declaration of a function CrHPath:
> 
> methods (Static)
>     function oPath = CrHPath(dCdPrdt)
>         % fill in the implementation of CrHPath
>     end
> end
> 
> *snip*
> 
> -- 
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ 
> Dear Mt. Steven Lord

thanks for your answer.
As mentined in matlab_document, it is allowd that a static method can be defined in "method block" by only attribute, and its body is defined in @ directory.

I must define many static methods. Each static method has coded more than 50 rows.
It is not convient to write code as your mentioned.

menglong