spano 发表于 2007-5-8 22:36

麻烦高手看下这个格式哪里错了

b1 =uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','刷新',...
    'position',,...
    'callback',['dat2 = get(e2,''string'');,'...
          'dat3 = get(e3,''string'');,'...
          'dat4 = get(e4,''string'');,'...
          'dat5 = get(e5,''string'');,'...
          'dat6 = get(e6,''string'');,'...
          'dat7 = get(e7,''string'');,'...
          'Satellite(N_PRN,2:7) = str2num();']);



提示错误:
??? Subscripted assignment dimension mismatch.
??? Error using ==> dat2 = get(e2,'string');,dat3 = get(e3,'string');,dat4 = get(e4,'string');,dat5 = get(e5,'string');,dat6 = get(e6,'string');,dat7 = get(e7,'string');,Satellite(N_PRN,2:7) = str2num();
Subscripted assignment dimension mismatch.
??? Error while evaluating uicontrol Callback

检查了N遍了,看不出来:@L

eight 发表于 2007-5-8 23:37

原帖由 spano 于 2007-5-8 22:36 发表
b1 =uicontrol('parent',h0,...
    'style','pushbutton',...
    'string','刷新',...
    'position',,...
    'callback',['dat2 = get(e2,''string'');,'...
          'dat3 = get ...
问题应该出在 Satellite(N_PRN,2:7) = str2num(); 这句上,建议自己调试一下
页: [1]
查看完整版本: 麻烦高手看下这个格式哪里错了