[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Iterative summation using sum(), fails with ezmesh
From: |
Erik Leunissen |
Subject: |
Iterative summation using sum(), fails with ezmesh |
Date: |
Tue, 08 Apr 2014 20:53:53 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
Hi all,
I want to produce a 3D-graph of a function, that in turn calls a helper
function to perform an iterative summation.
Both functions work as expected when a single isolated call is made.
However, when they are called by ezmesh to create a graph, I get an
error (see below).
The attached script exercises the problematic behaviour. Just do:
> octave exercise.m
Could somebody please explain why this is going wrong? Some directions
towards a remedy would be awesome.
Thanks a lot in advance,
Erik Leunissen.
--
# ---------- the error message ----
ans = -1.0733
ans = -18.272
ans = 1.4576e-12
ans = 1.3531
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
error: evaluating argument list element number 1
error: C at line 26, column 5
error: /usr/share/octave/3.6.4/m/plot/private/__ezplot__.m at line
402, column 11
error: /usr/share/octave/3.6.4/m/plot/ezmesh.m at line 73, column 19
error: /home/erik/Develop/dispoctave/test/_sumh/exercise.m at line 49,
column 1
# ---------- end of error message -----------------
exercise.m
Description: Text Data
- Iterative summation using sum(), fails with ezmesh,
Erik Leunissen <=
- Re: Iterative summation using sum(), fails with ezmesh, Jordi Gutiérrez Hermoso, 2014/04/08
- Re: Iterative summation using sum(), fails with ezmesh, Erik Leunissen, 2014/04/09
- Re: Iterative summation using sum(), fails with ezmesh, Francesco Potortì, 2014/04/09
- Re: Iterative summation using sum(), fails with ezmesh, Jordi Gutiérrez Hermoso, 2014/04/10
- Re: Iterative summation using sum(), fails with ezmesh, Erik Leunissen, 2014/04/10
- Re: Iterative summation using sum(), fails with ezmesh, Jordi Gutiérrez Hermoso, 2014/04/10
- Re: Iterative summation using sum(), fails with ezmesh, Erik Leunissen, 2014/04/11