文字列にタブを挿入するにはどうすればよいですか?

14 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 22 Mai 2018
文字列としてタブを挿入する方法を教えてください。

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 22 Mai 2018
以下の方法をご検討ください。
1. sprintf 関数で水平タブを挿入する
>> sprintf('\t')
2. blanks 関数で複数の空白文字を作成する
>> blanks(5)
特殊文字に関しては、以下の URL よりドキュメンテーションをご覧ください。
・テキストの書式設定

Plus de réponses (0)

Catégories

En savoir plus sur 文字と文字列 dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!