Damped Sine Wave MATLAB Program Code


Program: Damped sine wave MATLAB Code. You can change the values of X according to yourself.

x=[2 7 12 17 22];
plot (log (x));
hold on;
plot (log10(x));
hold off;
title(‘plot of log, log base 10 curves’);
gtext(‘log curve’);
gtext (‘log base 10 curve’);
xlabel (‘X Axis’);
ylabel(‘Y Axis’);

You can also change the name of the labels which are only names as x axis and y axis.

Add Comment