Skip to content

Instantly share code, notes, and snippets.

@karinjensen
karinjensen / matlab_plotting_examples.m
Last active June 15, 2022 13:26
Matlab plotting examples
clear all; close all;
%% Sample Data
x = [0 1 2 3 4 5 6];
y1 = [0 1 2 3 4 5 6];
y2 = [0 1 4 9 16 25 36];
%% Simple scatter plot
figure(1)
plot(x,y1,'k*',x,y2,'k^')
xlabel('X-axis Title (units)','FontSize',18); ylabel('Y-axis Title (units)','FontSize',18)