for loop - MATLAB symsum() function -
i having trouble getting code work symsum() work. don't know if because variables matrices or else. error getting following:
"invalid indexing or function definition. when defining function, ensure arguments symbolic variables , body of function sym expression. when indexing, input must numeric, logical, or ':'. "
any appreciated!
syms k x =4 = zeros(4,4) b = [1 1 1 1]' = 1:1:x a(i,i) = symsum(b(k),k,1,4) end
Comments
Post a Comment