use of msgbox in matlab
Show older comments
hi,
I tried to use the msgbox function in matlab, which I found here:
I tried to take the formula to display at which i we are currrently with the code:
h = msgbox(i)
unfortunately it's not working at all. From VBA I know that it's just necessary to enter msgbox and the variable, but that doesn't work either
what do I need t change?
Accepted Answer
More Answers (2)
per isakson
on 11 Apr 2013
Edited: per isakson
on 11 Apr 2013
>> h = msgbox('This is my message')
h =
0.0012
>>
works fine here. Message should be a string.
[Added:] To show the value of the numeric variable: i
h = msgbox( num2str( i ) )
VB do things more automagically than Matlab. Here you need to do the conversion explicitely.
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!