显示 更早的评论
I have been chasing this error for about an hour and a half and don't know where to look. In this function I am passing in a number of strings. I also have a few "get(handles.xrayUseBox,'Value')" inputs to the function. I keep getting the error below and am stumped. What does this mean? Do I have a variable undefined? (I'm pretty sure the answer to that is no) or am I using an input in an improper way?
??? Undefined function or method 'noise_function_test_EE1' for input arguments of type 'cell'.
The error is then pointing at the function. Thank you
采纳的回答
Jan
2011-8-22
You can use the debugger to find out more details:
dbstop if error
Then MATLAB stops in the line, which causes the error and you can inspect the types of the local variables. Obviously it contains a function 'noise_function_test_EE1' with a cell as input, but such a function does not exist.
If you cannot solve the problem, post the relevant lines here.
21 个评论
William
2011-8-22
Does that mean the function itself does not exist or something within the function is acting funny?
Thanks
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
Jan
2011-8-22
You can simply test the existence by "which noise_function_test_EE1".
更多回答(2 个)
Walter Roberson
2011-8-22
Is handles.xrayUseBox an array of handles? If so then get()'ing the Value would result in a cell array.
1 个评论
William
2011-8-22
For xrayUseBox I am just looking for a 1 or a 0.
William
2011-8-22
Well,
It turns out the problem lies in the previous guy misspelling "Function" in the title. Sometimes when EE's play in other people's sandboxes we see stuff that just makes us groan :Z
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
标签
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
