How to take the last row of a UITable in appdesigner and add it at the end of another existing UITable?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Cris LaPierre
am 26 Aug. 2020
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?
Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!