필터 지우기
필터 지우기

why do I get this problem 'Attempt to execute SCRIPT integral as a function:'?

조회 수: 3 (최근 30일)

I integrate a function by using 'integral' command, and showing the problem as'Attempt to execute SCRIPT integral as a function:', How can I resolve it?

This is my function

'P_{Out}^{{\mathop{\rm Sec}\nolimits} } = 1 - {\left[ {\frac{1}{{{\Omega {RU1}}}}\int\limits{{T_1}}^\infty {\left\{ {\exp \left( {\frac{{ - \left( {\Delta - 1} \right)}}{{w\left( z \right){\Omega {U2R}}}} - \frac{z}{{{\Omega _{RU1}}}}} \right)} \right\}} dz} \right]^2}', where, '$z = {\left| {{h{RU1}}} \right|^2}$, $\Delta = {2^{2{R_{TH}}}}$, $w\left( z \right) = \left( {1 - \beta } \right)\left\{ {\frac{{\eta \beta {\rm{ }}Pz}}{{\eta \beta {\rm{ z }}{N_0} + {N_0}\left( {1 - \beta } \right)}} - \frac{{\Delta P}}{{\left( {1 - \beta } \right)Pz + {N_0}}}} \right\}$ \\ and ${T_1} = \frac{{\left( {\frac{{\Delta - 1}}{{1 - \beta }}} \right) + \sqrt {{{\left( {\frac{{\Delta - 1}}{{1 - \beta }}} \right)}^2} + \frac{{4\Delta P}}{{{N_0}\eta \beta }}} }}{{2\left( {\frac{P}{{{N_0}}}} \right)}}.$'

채택된 답변

Walter Roberson
Walter Roberson 2017년 12월 11일
You accidentally have an integral.m file of your own. Use
which -all integral
to see where it is
  댓글 수: 4
Stephen23
Stephen23 2017년 12월 11일
편집: Stephen23 2017년 12월 11일
@Shashibhushan Sharma: type this in the command line:
which -all integral
then push enter. It will list all files/functions on the MATLAB path with the name integral. You can use this to manage which files get called. Read the which help for more information.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by