Hi all,
I made up some code to put a piece of text in a figure. But at the moment it only supports 2 values. I need it to be in a loop, so I can get the values with Frr(i).
text( 0.97, 0.93, ... [ '\fontsize{8}\color{blue}' ... num2str(Frr(1)) ' Hz, ' num2str( Prr(1)), 10, ... num2str(Frr(2)) ' Hz, ' num2str( Prr(2)), 10, ... 'EdgeColor','black', 'HorizontalAlignment', 'right', 'VerticalAlignment', 'top', 'Margin', 3, 'Units', 'normalized' );
I have been trying different things, like making strings and concatenating them together, but it becomes one long string.
I hope someone can help me.
Thanks in advance,
Gr. Sven
btw: the '10' in the code is the ascii code for a new line…
Best Answer