matlab - Showing Variable's Value on Message Box -


this simple problem, have been trying times, not working.

i have code:

[s,h]=silhouette(cobat,g,'sqeuclidean')  ms = mean(s)  z = [cobat s]; 

i want show ms value on message box. message box going this, 'the result [here ms value placed]'

any idea?

you following way:

h = msgbox(['the result ' num2str(ms)], 'title of message box') 

with num2str convert numerical result string, , square brackets concatenate "the result " result display in message box.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -