MATLAB Answers

variable string in warning dialog b

9 views (last 30 days)
sermet
sermet on 29 Aug 2016
Edited: 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.

Accepted Answer

Thorsten
Thorsten on 29 Aug 2016
Edited: Thorsten on 29 Aug 2016
value = 2;
warning(['number ' num2str(value)])

  0 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!