From: us on
"Ahmad" <ahmad.humyn(a)gmail.com> wrote in message <i0ar8l$j78$1(a)fred.mathworks.com>...
> Hmmm ... somehow using a handle class has zero effect on replaceVars(). I still don't know what I'm doing wrong?
>
> To clarify, if this C/C++, I would be looking for a deepcopy in replaceVars().
>
>
> thanks,

i'm sorry(!)...
should have read

classdef test < handle % <- as a superclass...
% did you try this(?)...

% also, did you look at

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_oop/brfylq3.html

us