필터 지우기
필터 지우기

How to take the last row of a UITable in appdesigner and add it at the end of another existing UITable?

조회 수: 3 (최근 30일)
newData=[app.UITable11.Data(end,:)];
app.UITable9.Data=vertcat(app.UITable9.Data,newData);
I tried this and i got the error:
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Error in app1/CalculateButton_3Pushed (line 4251)
app.UITable9.Data=vertcat(app.UITable9.Data,app.UITable11.Data);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)
Error while evaluating Button PrivateButtonPushedFcn.
  댓글 수: 1
Cris LaPierre
Cris LaPierre 2020년 8월 26일
Your code works when both tables have the same number of columns. However, the error message suggests they do not. What are the dimensions of UITable9 and UITable11?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by