How to display repeated sequence of answer of conversion in a single msgbox?

1 view (last 30 days)
Hi, I want to display repeated answer for the conversion of the length cm to m in a single msgbox, but I don't know how.

Answers (1)

Adam Danz
Adam Danz on 29 Oct 2020
Edited: Adam Danz on 2 Nov 2020
Demo:
msg = {'First line','Second line', 'Third line'};
msgbox(sprintf('%s\n',msg{:}))

Categories

Find more on Just for fun 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!