Question


I would like to create a handle function by for loop in matlab, but it does not work. I will be thankful if some body help me.
a=[1 2 3]; b=[4 5 6] n=length(a); for i=1:n s(i)=@(x) a(i)*x-b(i)*x; end

ongeveer 3 jaar ago | 2 answers | 0

2

answers