Path: news.mathworks.com!not-for-mail
From: "Mohammad Monfared" <gohardoust@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Creating new user-defined model in Model-Based Calibration toolbox
Date: Sun, 30 Nov 2008 18:33:02 +0000 (UTC)
Organization: gol
Lines: 15
Message-ID: <ggum8u$kt1$1@fred.mathworks.com>
Reply-To: "Mohammad Monfared" <gohardoust@gmail.com>
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 1228069982 21409 172.30.248.37 (30 Nov 2008 18:33:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 30 Nov 2008 18:33:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 93829
Xref: news.mathworks.com comp.soft-sys.matlab:503951


Hi,

In Model-Based Calibration toolbox, I want to define a new model as a user-defined model. My model is going to use the "gamcdf" function, as its function. I've passed the almoste simple steps (by means of a template file called, weibul.m ) described in the help section. But when I want to checkin it:

checkin(xregusermod, 'gammacdf', [0.1:0.01:0.2]'); % my new model is named, gammacdf

this error appears:

??? Error using ==> minus
Matrix dimensions must agree.

I can't recognize from where, this arises. Could anybody give some advice or make it for me?

thanks in advance,
Mohammad