[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Octave compared to Matlab
From: |
Peter Waller |
Subject: |
Octave compared to Matlab |
Date: |
Fri, 14 Aug 1998 10:49:30 +0200 (MET DST) |
I have used MatLab for some years now and it has been a challenge to avoid
loops.
eg.
for k=1:Nbr
k(1,k)=testfunction(k);
end;
If this loop is run in matlab then 'testfunction' is compiled for every
'k'.
>From the octave manual I have understood that octave compiles every
function before executing it.
Does this mean that 'testfunction' is only compiled once during the loop?
How does octave compile, is the code optimized?
I would like to thank Mario Storti for his answer on my vector problem, it
is great to have an email list like this!
/Peter Waller
- Octave compared to Matlab,
Peter Waller <=
Re: Octave compared to Matlab, John W. Eaton, 1998/08/18