0
我已经读取了一个XML表格到MATLAB中,并且我想根据数字自动向每个标记(数字)添加一个数字for循环。我想在MATLAB中编写一个XML表,我想向标记中添加一个数字
for i=1:tmp fileName = docNode.createElement(sprintf('ESM_ID'+'%d',i)); fileName.appendChild(docNode.createTextNode(files(i))); docRootNode.appendChild(fileName); end
所以上面我尝试添加一个数字标签,但它抛出一个错误:
Error using SMERCGUI>pushbutton1_Callback (line 613)
Error using plus
Matrix dimensions must agree.
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in SMERCGUI (line 44)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)SMERCGUI('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback