PDA

View Full Version : Matlab quad function



scorpious
August 1st, 2011, 08:47 AM
I've made a script file that will calculate exp(x) between 2 and 6 but don't really understand what it means by "fun".

I tried this code


x = [2:0.001:6];

area = quad(exp(x),2,6)but I get an error.
what am I missing here?

cheers