Let's take a simple example. I am trying to change my way of thinking to get more matrix oriented.
I have data
epsilonM = [0.001 10*h h 0];
situations = ['i.a)' 'i.a)' 'i.Q' 'ii.:w'];
hleg = legend(sprintf('%s Epsilon = %d, \n', situations, epsilonM));
I would like to get output
i.a) Epsilon = 0.001
i.a) Epsilon = 10*h,
i.Q Epsilon = h,
i.b) Epsilon = 0,
but I get

I have an intuition that there is a better way to do this - component wise.
How can you achieve the result without use of for loops, only by matrices?
situations, then the next part of your string"Epsilon = ", then the 4 elements ofepsilonM. This behavior ofs/fprintfis expected, but I've never found a good use for it.