找回密码
 注册
Simdroid-非首页
查看: 48|回复: 3

出现错误提示“??? Unable to find subsindex function for class cell.”

[复制链接]
发表于 2011-7-20 23:24:00 | 显示全部楼层 |阅读模式 来自 湖北武汉
??? Unable to find subsindex function for class cell.

Error in ==> D:\MATLAB6p5\work\utilities\VA1Demo.m (update_object_list)
On line 46  ==> eval(strcat('class_id = ',handles.commandname(selected,:),';'));

Error in ==> D:\MATLAB6p5\work\utilities\VA1Demo.m (VA1Demo_OpeningFcn)
On line 122  ==> update_object_list(hObject,handles);

Error in ==> D:\MATLAB6p5\toolbox\matlab\uitools\gui_mainfcn.m
On line 141  ==>     feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in ==> D:\MATLAB6p5\work\utilities\VA1Demo.m
On line 33  ==>     gui_mainfcn(gui_State, varargin{:});
错误提示如上所示,求解。恳请高手和热心人士帮助啊。
 楼主| 发表于 2011-7-21 09:04:47 | 显示全部楼层 来自 湖北武汉
Simdroid开发平台
1# whutmemory 自己先顶一下。在网上看到说是由于变量名和matlab已有的函数名相同才出现这种错误,但是看了半天不知道哪个变量名冲突了。
回复 不支持

使用道具 举报

 楼主| 发表于 2011-7-21 09:13:51 | 显示全部楼层 来自 湖北武汉
2# whutmemory
Subject:Why do I receive the error message: "??? Unable to find subsindex function for class char"?
Problem Description:??? Unable to find subsindex function for class char
??? Unable to find subsindex function for class struct
??? Unable to find subsindex function for class cell

In MATLAB 6.1 and previous versions, I can reproduce this error message using the following code:
set='abc'
set(gcf,'position')


Solution:This error occurs when a variable has the same name as a MATLAB function. For example, this error would occur if a variable in my MATLAB code was named SET, which is also a MATLAB function.

To determine if a particular variable is also a MATLAB function, you can use the which -all command. For example:
which set -all

If it outputs both a variable name and a filename that is under the MATLAB path, then you will need to rename your variable.

这是mathworks的官网找到的。不知class cell和class char有什么区别。


回复 不支持

使用道具 举报

发表于 2012-1-6 15:11:16 | 显示全部楼层 来自 河北廊坊
请你给出具体的代码,以方便调试
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-7-8 08:31 , Processed in 0.030775 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表