How to use num2str and disp command?
古いコメントを表示
Here's the question I got from lecture,
Find the help pages for num2str and disp.
Given >>speedlimit = 5;
Write a line of code that displays the message “The local speed limit is speedlimit km/h”, inserting the value where indicated.
How can I display those line only using num2str and disp command?
1 件のコメント
Star Strider
2017 年 2 月 9 日
Quoting the assignment:
Find the help pages for num2str and disp.
回答 (1 件)
Jan
2017 年 2 月 11 日
This
Find the help pages for num2str and disp.
means:
doc num2str
doc disp
You can concatenate strings like this:
['Hi ', 'I am ', 'here']
カテゴリ
ヘルプ センター および File Exchange で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!