Azzera filtri
Azzera filtri

what does the "%#ok<NASGU>" mean

20 visualizzazioni (ultimi 30 giorni)
dao2shui
dao2shui il 25 Gen 2018
Risposto: mechetoune walid il 1 Apr 2019
[success, message] = mkdir(dir); %#ok<NASGU> I want to know the meaning of "%#ok<NASGU>".

Risposte (2)

Aleem Alvi
Aleem Alvi il 5 Lug 2018
Hi dao2shui,
NASGU is the ID for the message, e.g., 'The value assigned here to variable 'nothandle' might never be used.'.
Please see https://www.mathworks.com/help/matlab/ref/mlint.html

mechetoune walid
mechetoune walid il 1 Apr 2019
This message ignore the error of conflict in the statement.you can use it when Another assignment overwrites the value of the variable before an operation uses it.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!