The code for the textbox.
txt = sprintf(['ResFreq: ',... num2str(xy(1)), ' Hz' ]);txtbox = annotation('textbox', [.6 .33 .1 .1], 'String', ... [ txt ]);set(txtbox,'BackgroundColor','red')set(txtbox,'FaceAlpha',0.2)set(txtbox,'LineWidth',1)
Here I have a picture of my graph.
I want to place the same triangle inside the textbox.
Best Answer