plot(waves,datos);
xlabel('Longitud de onda (um)'); ylabel('Transmision (dB)');
print(['Figure=' num2str(j)],'-dtiff','-r400');
in my code every time I increase a parameter the resonance peak shifts to the right, I need to track the resonance peak so that every time it has a different value the plot sale adjusts to that new value, that is to say that the axis adjusts according to the new peak. thanks