[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
imread problem - regexp?
From: |
Assa Sittner |
Subject: |
imread problem - regexp? |
Date: |
Tue, 4 Apr 2006 00:46:36 +0200 |
User-agent: |
Internet Messaging Program (IMP) 3.2.4 |
hello everyone,
i'm new to octave, so excuse me if the question is trivial,
i'm having the following problem:
"
octave:4> I=imread("gel")
error: `regexp' undefined near line 150 column 11
error: evaluating assignment expression near line 150, column 9
error: called from `imread:re_grab' in file `/home/assaz/imread.m'
error: evaluating assignment expression near line 69, column 11
error: called from `imread' in file `/home/assaz/imread.m'
error: evaluating assignment expression near line 4, column 2
"
there seems to be a problem with the code:
around line 150,i have:
lines 149-157
function value = re_grab(re, str)
idx = regexp(re, str);
if !isempty(idx)
idx = idx(2,:);
value = substr(str, idx(1), diff(idx)+1);
else
value = "";
endif
endfunction
in line 69 i have:
depth = re_grab("Red: ([[:digit:]]{1,2})", ident);
how do i go about it?
thanks,
--
Assa
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- imread problem - regexp?,
Assa Sittner <=