How to put the command \n in function input?

Hi people, how to put the command \n in function input
example input("suck my balls \nlalalala");

回答 (1 件)

per isakson
per isakson 2014 年 10 月 4 日

0 投票

Works in R2013b
>> input('first line\nsecond line =' )
first line
second line =17
ans =
17
>>

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2014 年 10 月 4 日

コメント済み:

2014 年 10 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by