Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!m13g2000yqc.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Matlab errors
Date: Sat, 17 Mar 2012 17:20:25 -0700 (PDT)
Organization: http://groups.google.com
Lines: 11
Message-ID: <2d810239-64f6-421f-8a4d-7824ce2ca72b@m13g2000yqc.googlegroups.com>
References: <jk35l5$sc0$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 184.57.134.178
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1332031013 32372 127.0.0.1 (18 Mar 2012 00:36:53 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 18 Mar 2012 00:36:53 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m13g2000yqc.googlegroups.com; posting-host=184.57.134.178; 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: news.mathworks.com 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:  http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F

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
time.