9ff4e5bRestructure demo into a full guided tour with OOP and namespacesJeremy Magland 1classdef Poly
2 % A class whose methods live in separate files in the @Poly/ folder.
3 properties
4 coeffs = []
5 end
6 methods
7 function obj = Poly(c)
8 if nargin > 0, obj.coeffs = c; end
9 end
10 y = evalAt(obj, x) % implemented in @Poly/evalAt.m
11 end
12end