1function jsimwView(filename)
5% Copyright (c) 2012-2026, Imperial College London
10[path] = fileparts(filename);
12 filename=[pwd,filesep,filename];
15% Check global verbosity level to determine output suppression
16suppressOutput = isempty(LINEVerbose) || LINEVerbose ~= VerboseLevel.DEBUG;
19 % Suppress output unless in DEBUG mode
21 cmd = [
'java -cp "',jmtGetPath,filesep,
'JMT.jar" jmt.commandline.Jmt jsimw "',filename,
'" > nul 2>&1'];
23 cmd = [
'java -cp "',jmtGetPath,filesep,
'JMT.jar" jmt.commandline.Jmt jsimw "',filename,
'" > /dev/null 2>&1'];
25 cmd = [
'java -cp "',jmtGetPath,filesep,
'JMT.jar" jmt.commandline.Jmt jsimw "',filename,
'" > /dev/null 2>&1'];
28 % Allow output in DEBUG mode
29 cmd = [
'java -cp "',jmtGetPath,filesep,
'JMT.jar" jmt.commandline.Jmt jsimw "',filename,
'"'];
32[status] = system(cmd);
36 cmd = [
'java --illegal-access=permit -cp "',jmtGetPath,filesep,
'JMT.jar" jmt.commandline.Jmt jsimw "',filename,
'" > nul 2>&1'];
38 cmd = [
'java --illegal-access=permit -cp "',jmtGetPath,filesep,
'JMT.jar" jmt.commandline.Jmt jsimw "',filename,
'" > /dev/null 2>&1'];
41 cmd = [
'java --illegal-access=permit -cp "',jmtGetPath,filesep,
'JMT.jar" jmt.commandline.Jmt jsimw "',filename,
'"'];
43 [status] = system(cmd);
45 rt = java.lang.Runtime.getRuntime();