MATLAB Answers

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

2 ビュー (過去 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 件のコメント
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by