comparison +util/plotf.m @ 0:48b6fb693025

Initial commit.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 17 Sep 2015 10:12:50 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:48b6fb693025
1 function plotf(f,a,b,opt)
2 if ~exist('opt')
3 opt = '';
4 end
5
6 x = linspace(a,b);
7 for i = 1:length(x)
8 y(i) = f(x(i));
9 end
10 plot(x,y,opt)
11 end