https://github.com/NeuroEngineering-UniMelb/cortical-units
Raw File
Tip revision: 7e61885a0f8d70c98a5858b5c947962381788ec3 authored by Robert Kerr on 28 July 2014, 06:13:24 UTC
Initial commit
Tip revision: 7e61885
plot_line.m
function plot_line(type,values,c,w)
if ~exist('w','var')
    w = 0.5;
end
if type == 'y'
    for i = 1:length(values)
        plot(xlim(),values(i)*ones(1,2),c,'LineWidth',w);
        hold on
    end
elseif type == 'x'
    for i = 1:length(values)
        plot(values(i)*ones(1,2),ylim(),c,'LineWidth',w);
        hold on
    end
end
back to top