2016/10/20

Como ajustar o LineStyle

Como ajustar o LineStyle para multiplas linhas no MatLab?
How to set LineStyle property for multiple lines in MatLab?


O código abaixo pode ajudar.

% -----------------------------------------------
w1 = hann(L4);
w2 = hamming(L4);
figure(41),h = plot([w2,w1]); legend('hanning','hamming');
xlabel('amostras'), ylabel('Amplitude (Abs)')
title('Respostas dos filtros')
set(h,{'LineStyle'},{'--';'-.'})
% -----------------------------------------------

Note que as propriedade do LineStyle são do tipo cell.




Nenhum comentário: