Home > other >  Matlab integral programming, always encounter problems, a great god answers
Matlab integral programming, always encounter problems, a great god answers

Time:09-16

As shown in figure, the formula is the


I used to programming, the discretization procedure is as follows:
Derad=PI/180;
D=0.5;
M=10;
Theta1=0-0. 0002:10;
C1=exp (- j * (0: M - 1) '* 2 * PI * d * sin (theta1 * derad));
C=c1 * c1 '* ((Max (theta1 * derad) - min (theta1 * derad))/(length (theta1) - 1));
This is a little problem, can calculate the result, but I feel like a little less what, but also to the integral of the matrix don't quite understand how to write,,,

I also use the quad function, has been an error, but matlab program is as follows:
Derad=PI/180;
D=0.5;
M=10;
C1=@ theta1 exp (- j * (0: M - 1) '* 2 * PI * d * sin (theta1 * derad));
C=quad (c1 * c1 ', 0, 10);
Matlab error screenshot:


O great god answer
  • Related