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

조회 수: 1 (최근 30일)
Pedro Guevara
Pedro Guevara 2019년 5월 26일
댓글: Pedro Guevara 2019년 5월 26일
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
dpb
dpb 2019년 5월 26일
"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 2019년 5월 26일
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

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by