Error in my integration process

Hi Everyone;
I have the following equation:
And I coded it in MATLAB as:
X=ber.*PDF_H;
syms X
ABER=int(X,H,0,inf);
And I received the error message as:
Error using sym/int (line 165)
Unable to integrate with
respect to '0.00054377
0.00047858 0.00040719
0.00033482 0.00026625
0.00020517 0.0001537
0.00011241 8.0658e-05
5.7068e-05 4.0012e-05
2.7921e-05 1.9467e-05
1.3602e-05 9.5462e-06
6.7414e-06 4.7953e-06
3.4378e-06 2.4847e-06
1.8102e-06'. The integration
variable must be a symbolic
variable.
Error in Pointing_Error_14
(line 182)
ABER=int(X,H,0,inf);
Where is my mistake please?

3 Comments

These lines of code are not correct
X=ber.*PDF_H;
syms X
ABER=int(X,H,0,inf);
But without further information, it is not possible to suggest a solution. Can you tell how f_h and P_b are defined?
A.J.M
A.J.M on 27 Sep 2020
Edited: A.J.M on 27 Sep 2020
Dear Mr. Ameer Hamza;
f_h in the equation = PDF_H in Mat. code, it is variable vector.
P_b in the equation =ber in Mat. code, it is variable vector also.
We can't run what you've posted as several of the variables aren't defined. If you post the whole code that defines ber, and PDF_H we may be able to help you modify your code.

Sign in to comment.

Answers (0)

Asked:

on 27 Sep 2020

Commented:

on 27 Sep 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!