MATLAB: Mac computer won’t use java.lang.Thread.sleep command

java commandmacMATLAB

When I use the command "java.lang.thread.sleep" on my iMac I get "No method 'sleep' with matching signature found for class 'java.lang.Thread'."

Best Answer

You can call this command like this:
java.lang.Thread.sleep(duration*1000)
Did you include the time?