jacobs2011
Computer
Im new to matlab so you'll have to excuse the very basic question (and Im not sure if this is in the correct forum).
1) In the function polyint, there is 1 line of code to perform integration, and I can't see how it works. The line is-
r = [ p./(n:-1:1), 0 ];
where r is the integral being calculated, p is a row vector representing a polynomial (in the form of [1 0 0]) and n is the number of elements in p.
If someone could explain briefly what is happening it would be a big help. Thanks.
1) In the function polyint, there is 1 line of code to perform integration, and I can't see how it works. The line is-
r = [ p./(n:-1:1), 0 ];
where r is the integral being calculated, p is a row vector representing a polynomial (in the form of [1 0 0]) and n is the number of elements in p.
If someone could explain briefly what is happening it would be a big help. Thanks.