Posts

Showing posts with the label matlab-table

How to do a code optimization for data export/import to uielements

How to do a code optimization for data export/import to uielements I have a gui with a uitable with a maximum of 30 rows and 30 edit-boxes. I what 2 specific things. 1) Export the cell array with the uitable strings (4 columns and 1–30 rows). Then I want the values of the 30 edit-boxes inserted in the cell array in column 5. 2) Finally I want to be able to load the exported cell array; the 4 first columns into the uitable and the 5th column into the edit-boxes. The code I have created (see below) is exporting/importing an excel sheet but it is very slow, even with only 5–7 rows in the uitable. How can I make this faster and more elegant. I doesn’t have to be an excel sheet. It can be a *.txt, *.cvs or something else (not *.mat). % --- Dataset example GUIstate = { 'REF20171002-2.txt' 'REF20171002-2' '217096907-1.txt' [217096907] [1] 'REF20171002-4.txt' 'REF20171002-4' '217096909-1.txt' [217096909] [3] ...