|
From: | Riccardo Corradini |
Subject: | R: textscan |
Date: | Mon, 10 May 2010 13:38:22 +0000 (GMT) |
Hi, I use this function thanks to David Bateman to read ASCII .mat files from ox programming language ..In the first line of the text file there are the number of rows and columns the others are the element of the matrix function [m] = matread(filename) fid = fopen(filename,"rt"); [v, c] = fscanf(fid, "%g", Inf); fclose(fid); m = reshape (v(3:end), v(2), v(1))'; endfunction Hope it might be a good template. Bests regards Riccardo Corradini --- Lun 10/5/10, Sascha Raddatz <address@hidden> ha scritto:
|
[Prev in Thread] | Current Thread | [Next in Thread] |