view +util/plotf.m @ 253:5b6dfa8a743d operator_remake

Bug fixes in nonequidistant class files.
author Martin Almquist <martin.almquist@it.uu.se>
date Wed, 07 Sep 2016 14:29:38 +0200
parents 48b6fb693025
children
line wrap: on
line source

function plotf(f,a,b,opt)
    if ~exist('opt')
        opt = '';
    end

    x = linspace(a,b);
    for i = 1:length(x)
        y(i) = f(x(i));
    end
    plot(x,y,opt)
end