SyntaxFix
Write A Post
Hire A Developer
Questions
I prefer the following, which is cleaner:
x = [1, 2, 3]; g=sprintf('%d ', x); fprintf('Answer: %s\n', g)
which outputs
Answer: 1 2 3