How to put the command \n in function input?

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

Answers (1)

per isakson
per isakson on 4 Oct 2014
Works in R2013b
>> input('first line\nsecond line =' )
first line
second line =17
ans =
17
>>

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!