Close function Julia

question
#1

Hi everyone,

which command in Julia is equal to close in Matlab?

e.g.


if i==1
close
end
#2

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
#3

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.

2 Likes
#4

Professor, Thanks very much for your detailed answer!

Kind regards.