I have a class. There are some properties and anonymous functions into this class:
classdef Parabolic properties (Access = public) a = 0; b = 0; c = 0; F = @(t, x) 0; %%There are othere code
endproperties (Access = private) Z = []; u = []; method = 0; border = @(k, psi) 0; %%There are othere code end%%There are othere codemethods(Access = public)function Calculate(this) [X, P] = meshgrid(solver.La : solver.h : solver.Lb, solver.Ta : solver.tau : solver.Tb); a = this.a b = this.b; c = this.c; this.Z = this.F(X, P); % Function
endendend;
I initialize some properties and after it, I execute this method it:
But I have such error:
Undefined function or variable 'a'.
What does it cause this error?
Best Answer