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?
采纳的回答
更多回答(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!