LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
jsimgView.m
1function jsimgView(self, options)
2% JSIMGVIEW(OPTIONS)
3
4% Copyright (c) 2012-2026, Imperial College London
5% All rights reserved.
6
7if self.enableChecks && ~self.supports(self.model)
8 line_error(mfilename,'This model contains features not supported by the solver.');
9end
10if nargin<2 %~exist('options','var')
11 options=Solver.defaultOptions();
12end
13if ~isfield(options,'samples')
14 options.samples = 1e4; % default: this is the samples / measure, not the total number of simulation events, which can be much larger.
15elseif options.samples< 5e3
16 line_warning(mfilename,'JMT requires at least 5000 samples for each metric. Setting the samples to 5000.\n');
17 options.samples = 5e3;
18end
19self.seed = options.seed;
20self.maxSamples = options.samples;
21sn = self.getStruct;
22writeJSIM(self, sn);
23% if options.verbose
24fileName = [getFilePath(self),filesep, getFileName(self), '.jsim'];
25line_printf('JMT Model: %s\n',fileName);
26jsimgView(fileName);
27end