Mercurial > repos > public > sbplib
view +util/plotf.m @ 638:17dffd56f2fe feature/d1_staggered
Bug fix and improved comments in D1Staggered wrapper class.
author | Martin Almquist <malmquist@stanford.edu> |
---|---|
date | Fri, 10 Nov 2017 15:57:21 -0800 |
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