- #1
Superposed_Cat
- 388
- 5
Hi, I was trying to plot two sets of data on the same graph and this was my solution but this generates a graph with the x-axis in 0.5 increments where I wanted 1. How do I plot two sets of data on the same graph and customize the increments. Thanks in advance. Also, how would I make MATLAB calculate the area under each curve?
Code:
x = [1 2 3 4 5];
y2 =[84,86,84,81,84,];
%72,84];
y=[74,85,89,96,99];
plot(x, [y(:) y2(:)])