MATLAB: What should be the plot command

plot

deltaSignal = abs(testSignal - referenceSignal);
percentageDifference = deltaSignal ./ referenceSignal; % Percent by element.
meanPctDiff = mean(percentageDifference); % Average percentage over all elements
If you can please tell me how does the plot command looks like for the code above.

Best Answer

plot([deltaSignal(:), percentageDifference(:)])
However, it is likely that the two are on fairly different scales, so you probably want something more like
Fs = 44100; %sampling frequency. Example value.
t = (0 : length(deltaSignal) - 1) ./ Fs;
plotyy(t, deltaSignal, 'b', t, 100 * percentageDifference, 'gp');