Unable to use a value of type function_handle as an index.
8 ビュー (過去 30 日間)
古いコメントを表示
hi all,
I am trying to perform double integration using following syntax:
Gxh=@(xpp,zpp) (xpp+zpp)
GXH=integral2(Gxh,aa,bb,cc,dd);
but i am getting following error message:
"Unable to use a value of type function_handle as an index."
I have already tried to change the names of Gxh and GXH but to no avail. Please help me resolve the issue!
2 件のコメント
Just Manuel
2021 年 2 月 18 日
When I assign some integers for aa, bb, cc and dd, your code works for me.
What is your full error message? What are aa, bb, cc and dd in your code?
採用された回答
Walter Roberson
2021 年 2 月 18 日
You have accidentally assigned a value to a variable named integral2
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!