|
From: | Doug Stewart |
Subject: | Re: (no subject) |
Date: | Fri, 10 Jun 2016 08:24:33 -0400 |
> %read parameters from a txt file
>
> [datafile] = uigetfile('*.txt','Choose a txt file');
> A=dlmread(datafile);
> zt = A(:,1);
> zb = A(:,2);
> agetop = A(:,3);
> agebas = A(:,4);
> psed = A(:,5);
> c = A(:,6);
> surpor = A(:,7);
> basset = A(:,8);
>
> flagfile = 1;
> flagunits = 1;
> flagage = 1;
> flagdens = 1;
> flagporo = 1;
>
> p.s. hope this is posting in the right place now
As a double check, I removed the ";" from the line ends to see what is
written to the terminal and that all looked fine; it just did not
write the variables to the workspace.
[Prev in Thread] | Current Thread | [Next in Thread] |