We can plot data using both MATLAB and Python (through Matplotlib).

In MATLAB

To describe the intrinsic elements of a graph, we have the following functions:

  • hold on then hold off ensures that elements are added to one plot at once, we use the latter to turn this off.
  • title('String') for a title.
  • xlabel('String'), ylabel('String') for their respective labels.

We can plot different types of data:

  • plot(xdata, ydata) does a continuous connection between each data point.
  • scatter(xdata, ydata) plots point by point without a continuous connection.

See also