Skip to content

Instantly share code, notes, and snippets.

View davidwessman's full-sized avatar

David Wessman davidwessman

View GitHub Profile
@davidwessman
davidwessman / export_example.m
Created November 16, 2015 19:45
Export Matlab figure as PDF
% This needs to be set to be able to print
fig = figure;
% If you want multiple plots in the figure
hold on;
I = 0:1:9;
blue = [0, 0.048, 0.143, 0.129, 0.236, 0.333, 0.479, 0.512, 0.582, 0.678];
red = [0, 0.095, 0.106, 0.171, 0.156, 0.227, 0.270, 0.300, 0.366, 0.384];
plot(I, blue,'+b')