comparison +util/plotfi.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 % runs f for each value in v and plots the result.
2 function plotfv(f,v,opt)
3
4 if ~exist('opt')
5 opt = '';
6 end
7
8 for i = 1:length(v)
9 y(i) = f(v(i));
10 end
11 plot(v,y,opt)
12 end