[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Matlab to Octave Nesting function help

**From**: |
Andreas Weber |

**Subject**: |
Re: Matlab to Octave Nesting function help |

**Date**: |
Wed, 02 Jul 2014 09:08:19 +0200 |

**User-agent**: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |

On 02.07.2014 03:50, Diana Nomura wrote:
>* function [newXY] = MinuOrigin - TransAll(real_end, k)*
This function definition is invalid. I guess the rules for function
names are the same as for variables: ... The name of a variable must be
a sequence of letters, digits and underscores, but it may not begin with
a digit...
Try function [newXY] = MinuOrigin_TransAll(real_end, k) instead
>* function [end_list, branch_list,ridgeOrderMap,edgeWidth] = mark_minutia (in, *
>* inBound,inArea,block)*
>* [w,h] = size (in);*
>* *
>* output:*
>* error: 'in' undefined near line 2 column 13*
I guess you haven't called mark_minutia with arguments. See this example
function b=square_it(a)
b=a**2;
endfunction
octave:3> square_it(3)
ans = 9
octave:4> square_it()
error: 'a' undefined near line 2 column 3
error: called from:
error: square_it at line 2, column 2
Do you see? The second call was without argument and therefore a is
undefined.
-- Andy