[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Loading .dat file
From: |
David Grundberg |
Subject: |
Re: Loading .dat file |
Date: |
Fri, 25 Jun 2010 10:40:28 +0200 |
User-agent: |
Thunderbird 2.0.0.24 (X11/20100411) |
dirac skrev:
> On another note I am trying to automate this (if you can), even though it is
> only one line. using a function. I am typing:
>
> function f=Hakki(filename)
> %A program to read the hakki paoli raw data files
> f=dlmread('filename');
>
> end
Make this
function a = Hakki (filename)
a = dlmread (filename);
endfunction
But here you will only sake 2 keystrokes, since you still need to write
the filename, calling the function with Hakki ('somefile.txt').
>
> All I want to do is to pass the file name through the function
> Hakki(filename) and get it to read the file. Again I am sorry if this
> trivial but I am reading about this but can't seem to find a solution. Any
> suggestions will be greatly appreciated :)
>
> Thank you all
> Martin
>
> -----
> Converting myself from Excel to Octave for reasons I hope to find out.
hth,
David