Path: news.mathworks.com!not-for-mail
From: "Fred Smith" <fsmith@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: embedded MATLAB function block
Date: Fri, 16 May 2008 12:27:38 -0400
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <g0kclq$4s4$1@fred.mathworks.com>
References: <g0jpdm$713$1@fred.mathworks.com>
Reply-To: "Fred Smith" <fsmith@mathworks.com>
NNTP-Posting-Host: smithf.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1210955259 4996 144.212.115.117 (16 May 2008 16:27:39 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 May 2008 16:27:39 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:468887



This is a limitation of the product.  There is no ideal workaround.  You can 
create an M-file and call it from multiple Embedded MATLAB Function block's 
to effectively share your code across blocks.

-Fred


"John Reilly" <jrhokie1.nospam@yahoo.com> wrote in message 
news:g0jpdm$713$1@fred.mathworks.com...
>i am using an r2007b embedded MATLAB function block, which i
> have put into a library.  when i use multiple instances of
> the block in a model, it looks like the inputs and outputs
> of all instances must have the same dimensionality, or you
> get a code generation error.
>
> is there a way around this issue?
>
> thanks.
>
> reilly.
>