How do I make a file name with combination of two strings ?
Show older comments
Hi All
How do I make a file name with combination of two strings ? most of the examples I have seen are combination of a file and a number
Accepted Answer
More Answers (1)
S1 = 'hello';
S2 = 'world';
name = sprintf('%s%s.txt',S1,S2)
Categories
Find more on Characters and Strings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!