I'm having some trouble creating classes in matlab and I don't really understand the method behind it (i'm fairly new to it) here is my attempt at basic addition using matlab
classdef test
properties
a bend
methods
function add = plus(a, b) endend
end
assigning values via
p=test(), p.a=5
etc seems to work fine, however attempting p.add returns the error
No appropriate method, property, or field add for class test.
Any help or guidance would be appretiated, thanks.