Close function Julia

Hi everyone,

which command in Julia is equal to close in Matlab?


if i==1

I’m not quite sure if it’s equivalent, since I’m not quite sure what the matlab command actually does (I’m not familiar with matlab, I just looked at the docs), but in Julia exit() closes the REPL, so perhaps that’s what you’re looking for?

1 Like

This deletes the current figure in Matlab as far as I recall. I don’t think there is anything similar in Julia. I believe it depends where that figure (plot) was displayed: the terminal, Atom or VS code, or an Electron window, or a webpage. The actions would be very different. I think that is why that function doesn’t exist.


Professor, Thanks very much for your detailed answer!

Kind regards.