MATLAB Answers

0

variable string in warning dialog b

Asked by sermet on 29 Aug 2016
Latest activity Edited by Thorsten
on 29 Aug 2016
string=0;
string=num2str(string);
Is it possible to write "number:0" (as 0 is variable) within warning dialog box?

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Thorsten
on 29 Aug 2016
Edited by Thorsten
on 29 Aug 2016
 Accepted Answer

value = 2;
warning(['number ' num2str(value)])

  0 Comments

Sign in to comment.