how can one copy and paste error message in livescript?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
alpedhuez
il 12 Giu 2020
Commentato: alpedhuez
il 17 Giu 2020
I got an error message working with Livescript. How can I copy and paste these messages?
0 Commenti
Risposta accettata
Più risposte (1)
Samatha Aleti
il 15 Giu 2020
Hi,
You can use “lasterror" to get the information of the last error in the form of a “structure” which includes “Error message”, “Error ID".Then you can copy and paste the error message accordingly. Here is a sample code:
clear all;
x = y+1; % y is not defined
err = lasterror
err.message
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!