How can I duplicate the data entered in a table instantaneously?
Mostra commenti meno recenti
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:

---> 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 Commenti
dpb
il 26 Mag 2019
The CellEditCallback function will be called every time the use edits a cell with the location of that cell...your callback function needs to check the column to be either 4 or 5 and retrieve the associated X,Y. Probably you will find it convenient to build a persistent local copy of the used nodes and their coordinates for reference--altho you don't say how you either prevent or allow the user to make a change in a geometry value--there could have been a typo or just a mistake trying to be corrected so can't necessarily lock in the very first number entered.
A generic table is probably not the most convenient way to try to write the UI; controlling it to be one type of input or the other could simplify somewhat, perhaps.
Undoubtedly if you want some actual coding help posting what you've tried or at least a callback function outline would help -- nobody can try anything here w/o building a test case and that just probably isn't going to happen w/o you providing the framework...these are, after all, "just" volunteers taking their time to try to help others gratis...
Pedro Guevara
il 26 Mag 2019
Modificato: dpb
il 26 Mag 2019
dpb
il 26 Mag 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
il 26 Mag 2019
Risposte (0)
Categorie
Scopri di più su Data Type Identification in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!