I have 3 arrays
a=[[1;2;3],[4;5;6],[7;8;9]]b=[[3,2,1],[6,5,4],[9,8,7]]c=[3 6 9]inst=myclass;inst.myfunc(arr1, arr2, arr3);
and I delivered it to my class
classdef myclasspropertiesa;b;c;endmethodsfunction obj=myfunc(obj, arr1, arr2, arr3)obj.a=arr1;obj.b=arr2;obj.c=arr3;endendend
the result says
same for the other properties
why this happens? and how to fix it?
I had thought that this is something to do with class instructor
so I made empty class constructer and added it to methods
and fixed 'inst' too
same error had occured.
How to pass arrays to function properly?