INTRO: Hi, I use the command pulsewidth(data,time) to display the width of peaks as described in the example below:
clear all; close all;% DATA GENERATION
Fs = 1000;time = 0:1/Fs:1;Frq = 10;data = sin(2*pi*time*Frq);% CALCULATE AND PLOT PULSEWIDTH
pulsewidth(data,time);figure(gcf);legend('Location', 'NorthEast');% PLOT PROPERTIES
box on;set(gca,'FontSize',18, 'FontName','Arial', 'FontWeight','bold','Color','w','LineWidth',3);xlabel('TIME','FontSize',18, 'FontName','Arial','FontWeight','bold');ylabel('AMPLITUDE','FontSize',18, 'FontName','Arial','FontWeight','bold');scrsz = get(0,'ScreenSize'); set(gcf,'Position',scrsz,'PaperPositionMode','auto');
QUESTION: How can I change the thickness of the lines and the sizes of the symbols displayed in the legend?
This legend is generated automatic with the command pulsewidth and I don't have access to the data. The only thing I could do until now was to fix the location of the legend.
I hope someone knows how to help me.
Thanks in advance
Emerson
Best Answer