From help-request at octave dot org Wed Aug 11 09:20:35 2004 Subject: Performance of subsasgn and subsref From: To: help at octave dot org Date: Wed, 11 Aug 2004 09:15:57 -0500 Hi I did very simple experiments in both matlab and octave. In octave: octave:1> m = rand(3000); octave:2> tic, a=m(1:2999, 1:2999); toc ans = 2.2935 octave:4> tic,m(2:3000, 2:3000)=a; toc ans = 1.8978 ----------- In matlab >> m=rand(3000); >> tic, a=m(1:2999, 1:2999); toc elapsed_time = 0.5277 >> tic,m(2:3000, 2:3000)=a; toc elapsed_time = 0.4800 I was wondering what causes the difference in performance. I am using octave 2.1.57 Thanks, Jia ------------------------------------------------------------- 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 -------------------------------------------------------------