I'm building a code to calculate the equal area criterion, the problem is that in one part I need to integrate a constant and matlab gives me an error when trying to integrate it:
For example:
P = 1; limit_1 = 0;limit_2 = 10;Area = int (P,limit_1, limit_2);
is there a way around this? if P is a function of x or something it computes it OK, but if I input a constant like in the example it doesn't work.
Best Answer