ヘルプ センターヘルプ センター
空白の文字配列
R2021b 以降
blanks(n)
例
blanks(n) は、空白文字からなる 1 行 n 列の配列を作成します。戻り値を string 演算子と組み合わせて、n 個の空白からなる string を作成します。
n
1
string
メモ
演算子 blanks は、C をアクション言語として使用する Stateflow® チャートではサポートされません。
blanks
すべて展開する
5 個の空白を含む string を作成します。
str = string(blanks(5));
R2021b で導入
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office