From: ImageAnalyst <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab errors
Date: Sat, 17 Mar 2012 17:20:25 -0700 (PDT)
Lines: 11
Message-ID: <>
References: <jk35l5$sc0$>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: 1332031013 32372 (18 Mar 2012 00:36:53 GMT)
NNTP-Posting-Date: Sun, 18 Mar 2012 00:36:53 +0000 (UTC)
Injection-Info:; posting-host=; posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2)
 Gecko/20100101 Firefox/10.0.2,gzip(gfe)
Xref: comp.soft-sys.matlab:761332

You should learn how to use the debugger.  If you knew how to do that
you could progress through your program one line at a time.  Then
you'd notice that none of your if blocks was ever entered, thus E and
F were never assigned.  They need to be because you return them.
Apparently the remainder of e2 and 3 is never an integer.  e2 if
probably a floating point number.  In that case, you need to read and
understand the FAQ:

Again, I  HIGHLY recommend that you learn how to use the debugger.
Everyone here who is successful with MATLAB has learned how in a short