提问


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

3 years 前 | 2 个回答 | 0

2

个回答