[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DLMREAD causes my computer to hang
From: |
Baar.J.van. |
Subject: |
Re: DLMREAD causes my computer to hang |
Date: |
Fri, 18 Nov 2005 16:35:42 +0100 (CET) |
Maybe this can help you:
function output=dlmread(filename,dummy,range)
data=eval(sprintf("load %s;",filename));
range++;
output=data(range(1):range(3),range(2):range(4));
endfunction
dlmread("filename.dat','does not matter',[1 1 2 2]
selects from
1 2 3
4 5 6
7 8 9
5 6
8 9
if you don't want a selection: change data into output
-------------------------------------------------------------
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
-------------------------------------------------------------