answersLogoWhite

0

Yes.

Let us use an example:

x=1:10; % Data Set

z=1:20; % Range

y=x^2; % Equation

equation1=trapz(y,z) % This will integrate y over the range of z for your data

When integrating over a matrix:

x2=[ 1 2 3; 4 5 6]; % Matrix

y2=x*C; % Where c is any variable

equation2=trapz(y2);

% Will integrate over every column of your matrix and give you an array.

User Avatar

Wiki User

12y ago

What else can I help you with?