|
From: | Alois Schloegl |
Subject: | Re: More octave-forge functions!!! |
Date: | Mon, 29 May 2006 22:17:50 +0200 |
User-agent: | Mozilla Thunderbird 0.9 (Windows/20041103) |
Bill Denney wrote:
On Mon, 29 May 2006, David Bateman wrote:For csvread, dlmread, csvwrite, dlmwrite it seems to me there must be a much simpler way of implementing these efficiently in a script file without the need for an oct-file.I have some m-file versions of csv2cell and cell2csv that I wrote independently of the o-f versions. I'll check to see if they look usable for csvread, dlmread, csvwrite, and dlmwrite.Bill
STR2DOUBLE should be very useful for implementing CSVREAD and DLMREAD function m = cvsread(filename) fid =fopen(filename,'r'); s= char(fread(fid,inf,'char')); fclose(s); m = str2double(s); endfunction Alois
[Prev in Thread] | Current Thread | [Next in Thread] |