Octave Wrapper |
Top Previous Next |
The Octave package simplace
Installation
Please download the file simplace.tar.gz
In Octave then please type:
pkg install "path/to/downloaded/simplace.tar.gz"
When you installed a previous version, please uninstall the package first
pkg uninstall simplace
pkg install "path/to/downloaded/simplace.tar.gz"
Example:
pkg load simplace
instdir = 'c:/svn/workspace/';
workdir = [instdir,'simplace_modules/test/'];
outputdir = [instdir,'simplace_modules/output/'];
sol = [workdir,'solution/lintul/KomplettTest.sol.xml'];
outputid = 'DIAGRAM_OUT';
sp = initSimplace(instdir, workdir, outputdir);
sess = openProject(sp,sol);
params = {{'enddate','31.12.2000'},{'LintulPartitioning.cFRTTB',[0 , .3, 2, .1 ]}};
siml = createSimplaceSimulation(sp,params);
simids = getSimplaceSimulationIDs(sp);
runSimplaceSimulations(sp);
rs = getSimulationResult(sp,outputid,simids{1});
closeProject(sp);
resl = resultToList(rs,true,0,1200);
figure('name', 'LAI')
plot(resl.CURRENT_DATE, resl.CENTER_LINE_LAI);
datetick('x', 'yyyy');