I have a pretty simple question: how can I shut down a script in matlab using code similar to using CTRL + C?
I want the program to stop working if the user enters the wrong numbers.
If in debug mode you can use dbquit. if you are in the main function, returnterminates and returns. Otherwise, use the function error.
dbquit
return
error
Use the function error. See doc errorfor more information.
doc error
Source: https://habr.com/ru/post/1746498/More articles:Маршрутизация неуправляемого массива строк из PInvoked OpenFileDialog (GetOpenFileName) - c#XML and XSLT: only specific child nodes need to be sorted - xmlШаблон Visual Studio 2010 для нового модуля UnitTest - visual-studio-2010Should I commit or roll back a transaction that creates a temporary table, reads, and then deletes it? - commitPython 3.0 IDE - Komodo and Eclipse are both flaky? - pythonHow do you submit LayoutRoot to RelayCommand via EventToCommand? - c #number of rows affected by rollback - oracleHow can I remove .NET installation folders for isolated storage when uninstalling WiX? - windows-installerTransferring data to the Kids window in Silverlight 4 using MVVM - silverlightThe problem with calculating floats - objective-cAll Articles