function ok = has_java() persistent h; if isempty(h) h = usejava('jvm'); end ok = h; end
Published with MATLAB® R2024b