You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
486 B
Matlab

% SBEACH toolbox - fsbeach_runmodel
% Written by Joshua Simmons 11/2017
% Syntax:
% success = fsbeach_runmodel(cfgpath,exepath)
%
% Input:
% cfgpath = path to SBEACH .CFG file (and other files setup by
% fsbeach_setupmodel()
% exepath = path to SBEACH exe
% Output:
% success = bool;
function [fail, cmdout] = fsbeach_runmodel(cfgpath,exepath)
cmdin = ['"' exepath '"' ' -cfgFN ' '"' cfgpath '"'];
[fail, cmdout] = system(cmdin);
end