How to put the command \n in function input?

5 次查看(过去 30 天)
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
Works in R2013b
>> input('first line\nsecond line =' )
first line
second line =17
ans =
17
>>

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by