Lets say I have a variable A=5
and i want to output it, but with some text added in front and after it. Something like this: "There are 5 horses."
(mind that 5
should be changable variable A
)
If I write: disp("There are "),disp(A),disp(" horses.")
I get:
There are
5
horses.
BUT I want everything in one line.
How do I do that?