[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error to compile function
From: |
Luca Salardi |
Subject: |
error to compile function |
Date: |
Sat, 23 Jun 2018 10:43:04 -0700 (MST) |
hi,
i write this code:
function eserciziFunzioni2=mini(x)
eserciziFunzioni2 = x(1);
for i=2:length(x),
if x(i) < eserciziFunzioni2
eserciziFunzioni2 = x(i);
end;
end;
endfunction
i try do compile it i receive this error:
甤>> eserciziFunzioni2
error: 'x' undefined near line 2 column 24
error: called from
eserciziFunzioni2 at line 2 column 22
is it logical to receive errors in compiling functions where I do not pass
any parameters?
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html
- error to compile function,
Luca Salardi <=