I have a matlab function, that calls a java function for displaying GUI.
function [] = Start(x, y)
main.Main.main({x,y});
end
I need to run clear java; command before calling the main function. To delete any data from the previous run.
But in doing so, the input variables x and y are also erased from the memory.
How can I ensure that the memory is clear before running the main function? (Running clear java; from the command line before calling Start(x,y) is not an option).