disp(‘hello world’);
59 ビュー (過去 30 日間)
古いコメントを表示
disp (‘hello world’);
2 件のコメント
Walter Roberson
2025 年 8 月 2 日
That is incorrect. The function hello does not accept any input parameters, and does not return any outputs.
採用された回答
Chris
2023 年 1 月 27 日
編集済み: Chris
2023 年 1 月 27 日
disp ('hello world');
Your apostrophes are wrong. How did you generate them? Here is your version:
disp (‘hello world’);
You could also use double quotes: " "
1 件のコメント
DGM
2025 年 8 月 4 日
編集済み: DGM
2025 年 8 月 20 日
This is a common problem that happens when people copy-paste code that's presented on websites that use prettytext formatting. I don't know if there are other issues with localization that could cause the same thing, but there are countless websites full of curly-quoted code. It's up to you to watch out for bad quotes, hyphens, and spaces.
It doesn't show up in the forum editor, but these invalid characters should be highlighted by your editor.

その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Object Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!