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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -