help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Iterative summation using sum(), fails with ezmesh


From: Jordi Gutiérrez Hermoso
Subject: Re: Iterative summation using sum(), fails with ezmesh
Date: Thu, 10 Apr 2014 09:23:42 -0400

On Wed, 2014-04-09 at 18:09 +0200, Erik Leunissen wrote:
> On 04/09/2014 03:17 AM, Jordi Gutiérrez Hermoso wrote:
> > On Tue, 2014-04-08 at 20:53 +0200, Erik Leunissen wrote:
> >
> >> Could somebody please explain why this is going wrong? Some directions
> >> towards a remedy would be awesome.
> >
> > Error messages are meaningful.  Read them!
> >
> 
> That's the response of someone who presumes that I did not read them.
> 
> What if I did read them, and failed to apply them to my case because of 
> misunderstanding?

I have no evidence that you attempted to understand it. Did you? What
were you able to figure out?

> >> error: _sumh: operator +: nonconformant arguments (op1 is 60x60, op2 is 
> >> 1x9)
> >> error: evaluating argument list element number 1
> >> error: called from:
> >> error:   _sumh at line 30, column 5
> >
> > The first part tells you where the error is. You are attempting to add
> > matrices of incompatible sizes.
> >
> > Go edit that file at that line and column and figure out what's wrong.
> > Or insert a `keyboard` statement in there to go into debug mode and
> > understand what's wrong (`whos` to see what variables you have, `doc
> > dbstack` to learn more about how to use debug mode).
> >
> 
> You took the trouble to respond, and from a purely
> technical/informational point of view, there is mixed value for me
> in it.

How far did you get with debug mode? I forgot to mention another
useful way to get into debug mode: debug_on_error(1). When you're in
debug mode, it's like an ordinary Octave session at the current
location of where the debugger stopped you. All normal Octave commands
work, in additional to the debugging commands. They all start with
"db", type "db" and hit tab to see which ones you have, type "help
dbanything" to see what the dbanything command does.

> However, the tone and included presumptions (regarding my reading,
> and my level of understanding octave) verge on presumptuousness.

Let's focus on the problem at hand instead of your perceptions of me.

What happens if you do C([-5,10],[1,10])? What do you think should
happen?

- Jordi G. H.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]