Skip to content

Commit

Permalink
make matlab interface gui-less (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
pratyai authored Jun 11, 2024
1 parent f867397 commit 7b46227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# Session open & close
#
###########################################################
const default_startflag = "" # no additional flags
const default_matlabcmd = matlab_cmd * " -nosplash"
const default_startflag = "-nodisplay -nosplash -nodesktop" # no additional flags
const default_matlabcmd = matlab_cmd * " -nodisplay -nosplash -nodesktop"
# pass matlab flags directly or as a Vector of flags, i.e. "-a" or ["-a", "-b", "-c"]
startcmd(flag::AbstractString = default_startflag) = isempty(flag) ? default_matlabcmd : default_matlabcmd * " " * flag
startcmd(flags::AbstractVector{<:AbstractString}) = isempty(flags) ? default_matlabcmd : default_matlabcmd * " " * join(flags, " ")
Expand Down

0 comments on commit 7b46227

Please sign in to comment.