Skip to content

Files

Latest commit

45697e4 · May 11, 2022

History

History
12 lines (10 loc) · 416 Bytes

strings.md

File metadata and controls

12 lines (10 loc) · 416 Bytes

Working with strings

fprintf over multiple lines

fprintf( ['The results of test %d are such that %d of the ', ...
'cats are older than %d years old.\nThe results of test ', ... 
'%d are such that %d of the dogs are older than %d years ', ...
'old.\nThe results of test %d are such that %d of the ', ...
'fish are older than %d years old.\n'], t1, cats, age, ...
t2, dogs, age, t3, fish, age);