How can I duplicate the data entered in a table instantaneously?

1 view (last 30 days)
Goodnight. I have the following problem I have a table that has the columns "Initial node" (col 4) and "Final node" (col 5) and columns 6-7 for the Cartesian components XY of the initial node and columns 8-9 for the Cartesian components XY of the final node. What I want is the following. If there is a node (either the initial or the end) that has its corresponding XY components and then the user digicates that same node in some of the initial or final columns (columns 4 or 5) I want that same node to take the coordinates of the node previously fingered Example:
Tabla.JPG
---> my uitable is called "TablaDatosElementos"
---> The schedule for the table must be within the event "CellEditCallbackCellEditCallback,"
-> Note: It is important to mention that my uitable "TableDataElements" is of variable size in terms of rows.
Thank you very much and I hope you can help me since I have been with this problem for several days and I have not been able to solve it with anything.
  4 Comments
dpb
dpb on 26 May 2019
"Everything seems to indicate that it works well but I can not get the data to go to the correct one."
What does that mean, specifically? Isolating the specific portion with which you're having trouble would probably help with some context...
Pedro Guevara
Pedro Guevara on 26 May 2019
It is this part. I do not get that " datos (V_org (Pos_igual1x (j, 1), 1), 6); " sent the data to the uitable.
if (V_org (Pos_igual1x (j, 1), 2) == V_org (celdas, 2) && V_org (Pos_igual1x (j, 1), 2) == 4) % Comparar si la posición de cualquier celda anterior (parte izquierda) es igual a la posición de la celda del último dígito
TablaDatosElementos.Data (V_org (celdas, 1), 6) = datos (V_org (Pos_igual1x (j, 1), 1), 6); % THIS LINE IS WHERE I HAVE THE PROBLEM
TablaDatosElementos.Data (V_org (celdas, 1), 7) = datos (V_org (Pos_igual1x (j, 1), 1), 7); % THIS LINE IS WHERE I HAVE THE PROBLEM
elseif (V_org (Pos_igual1x (j, 1), 2) ~ = V_org (celdas, 2) && V_org (Pos_igual1x (j, 1), 2) == 4)
TablaDatosElementos.Data (V_org (celdas, 1), 8) = datos (V_org (Pos_igual1x (j, 1), 1), 6); % THIS LINE IS WHERE I HAVE THE PROBLEM
TablaDatosElementos.Data (V_org (celdas, 1), 9) = datos (V_org (Pos_igual1x (j, 1), 1), 7); % THIS LINE IS WHERE I HAVE THE PROBLEM
end

Sign in to comment.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!