I do it with Octave under Ubuntu all the time. I have never tried this with
Matlab, but Octave is "mostly compatible" with Matlab, so there is a
good probability that this or something similar will work .
cmd = strcat('meep h=',num2str(height),' s=',num2str(sqr),' argrid.ctl');
%build a command line string including run time parameters
system (cmd); %issue the command to meep
reffilename = 'argrid-refhist.h5'; %read the result into Octave
Good Luck!
Neal
On Mon, May 23, 2011 at 12:53 PM, Marco Zocca <[email protected]>wrote:
> Hi all,
>
> has anyone managed to call MEEP from MATLAB? e.g with the system(['meep'
> meep_params meep_ctl_file]) , and to process its output?
>
> I cannot seemingly get MATLAB to wait until the WHOLE output from MEEP is
> ready (specifically, until the flux data is output to stdout).
>
> Does anyone know a workaround?
>
> Thanks in advance,
>
>
> Marco Zocca
>
> _______________________________________________
> meep-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss