possible bug in estimate.m

19 views
Skip to first unread message

Matt

unread,
Jan 4, 2012, 7:55:24 AM1/4/12
to iris-toolbox-discussion
Hi there,

It seems that there is some sort of problem with estimate.m (perhaps a
typo somwhere in a low level function). Up until version 20111101
Bayesian estimation worked fine, but in later IRIS releases I always
get the error message below. I could replicate this error using
Mirek's SPBC example code, so I guess it's not me and my code, unless
there was a change in IRIS language that I'm totally unaware of. Could
you pls check this?

Regards:
M

??? Error using ==> myestimate
Error: File: myestimate.m Line: 65 Column: 28
Expression or statement is incorrect--possibly unbalanced (, {, or [.

Error in ==> model.estimate at 271
[THIS,pstar,objstar,HESS,boundhit,opt] = myestimate(THIS,s,opt);

Error in ==> estimate_params at 93
[est,pos,C,H,mest,v,ans,ans,delta,Pdelta] =
estimate(m,d,starthist:endhist,E, ...


Jaromir Benes

unread,
Jan 4, 2012, 8:13:32 AM1/4/12
to iris-t...@googlegroups.com
Hi Matt:

The problem is (most likely) in the Matlab version. In some of the codes in releases past 20111101, I used a new Matlab syntax that was first introduced in, I believe, Matlab R2010a. If you happen to use an earlier version you get the error message. I omitted to mention this fact on the website or in the IRIS release notes.

I hoped that virtually all of the IRIS users would have upgraded their Matlab to at least 2010a by this time. Is it possible for you to do that? If you can't upgrade for whatever reason, let me please know and I replace the new syntax with something that would work on older Matlabs, too, in the next release. In the latter case, could you pls create a new Issue (a feature request) on the IRIS website? Thanks.

Best
Jaromir

Mate Toth

unread,
Jan 4, 2012, 8:22:22 AM1/4/12
to iris-t...@googlegroups.com
Hi Jaromir,

Yes, that seems to be the case, I've got R2009a. I'll try to upgrade
it, thanks for the quick answer.

Best,
Matt

> --
> You received this message because you are subscribed to the Google Groups
> "iris-toolbox-discussion" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/iris-toolbox/-/MbouAuz0VQMJ.
> To post to this group, send email to iris-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> iris-toolbox...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/iris-toolbox?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages