Mercurial > repos > public > sbplib
view +util/plotf.m @ 333:0fd4b259af9e feature/beams
Fixed some bugs in parametrization.Curve.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 04 Oct 2016 11:43:35 +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