Date: Feb 17, 2014 12:45 PM Author: Milad Subject: numerical integration Suppose you want to integrate a function from (0,n), where n is matrix 2*2 and you have a function of x example: y=sin(x),

what is the command in matlab to compute the integral for each variable separately.

to end up with results like matrix:[y1,1 y1,2; y2,1,y2,2]

thanks