matlab-uitable

saving user input from uitable matlab GUI?

我们两清 提交于 2019-12-11 08:32:04
问题 I'm creating a GUI (not using GUIDE) I'm looking for a convenient way for a user to enter some data. I figured uitable would be ideal except i can't seem to figure out how to store the user input from the table. I'd rather not use the celleditcallback function - ideally i'd like to save out the data all at once at the end using a save button or similar, any ideas? code for the table (this is within it's own function): dat = {0, 0, 0, true;... 0, 0, 0, true;... 0, 0, 0, true;}; columnname = {

Drag pattern in uitable matlab

a 夏天 提交于 2019-12-11 05:12:58
问题 I want to know if it is possible to drag pattern values in matlab uitable. In a spreadsheet, to enter values from 1 to 50, you need to enter 1,2,3 and select the cells and drag. Please can this be done in matlab uitable? Regards. 回答1: It can be done. But not as far as comfortable as with excel. Play around a bit with the following code, you can try to improve it or change it to your needs. I think it is a good starting point for you. function fancyTable defaultData = randi(99,25,2); h =

MATLAB uitable row generation from user input

穿精又带淫゛_ 提交于 2019-12-11 01:46:51
问题 I've got a GUI in MATLAB which uses uitables for input. There are a fixed number columns, and each column has a very specific format which I have stored as a cell array, like so: columnformat = {'text', 'numeric', {@doSomething, inputArg1}, {'Option1' 'Option2'}}; The number of rows is theoretically unlimited; the user could provide as many they like. The back-end is capable of handling arbitrarily many row inputs. Right now, I'm building a large uitable initially, and just assuming the user

Uitable over whole window width

回眸只為那壹抹淺笑 提交于 2019-12-08 08:56:13
问题 I would like to programmatically (or in GUIDE) fix the matlab-uitable to be the whole width of the panel on initialisation. How can I do this? All I've managed is to change the size in pixels of single columns. I would like the uitable to be 100% the width of the page at that time. When my window is in minimized form the GUI looks fine, but when I maximize it, the uitable is only about half the width of the page. (The uitable's height is not that of the whole panel though, around 1/2 of the

Uitable over whole window width

人走茶凉 提交于 2019-12-06 16:19:17
I would like to programmatically (or in GUIDE) fix the matlab-uitable to be the whole width of the panel on initialisation. How can I do this? All I've managed is to change the size in pixels of single columns. I would like the uitable to be 100% the width of the page at that time. When my window is in minimized form the GUI looks fine, but when I maximize it, the uitable is only about half the width of the page. (The uitable's height is not that of the whole panel though, around 1/2 of the whole page) The GUI is written in matlab-guide . This is the code that I am trying right now: data =

Matlab uitable data selection

与世无争的帅哥 提交于 2019-12-06 13:57:27
I have Uitable with data read from a AScii file. I want to select columns using mouse and also using checkboxes. I tried a lot but i cannot figure out how to select uitable column using mouse and getting that data. Also I am trying to insert checkbox in the last row of the uitable, so when user selects checkbox, particular column is selected. Any idea? You should edit the CellSelectionCallback and the CellEditCallback properties of your table. set(myTable,`CellSelectionCallback`,@CallBack) In order to see what columns/rows were selected, use the event data that you receive in your callback.

How to deselect cells in uitable / how to disable cell selection highlighting?

和自甴很熟 提交于 2019-12-01 04:25:35
I created the following uitable : actually every single row is an indpendent uitable , so the figure shown contains 5 uitables besides the header. Why I'm doing that was the issue of my last question , resulting in the shown table. Fully executable code you can find in the answer here (or a minimal example below). Solutions using a general GUI are also there, but it would blow up the code too much, and actually it just seems to be a kind of bug. It can be seen that everytime I jump to the next row, therefore to another uitable, the last selection remains highlighted, which looks stupid, though

How to deselect cells in uitable / how to disable cell selection highlighting?

做~自己de王妃 提交于 2019-12-01 02:48:52
问题 I created the following uitable : actually every single row is an indpendent uitable , so the figure shown contains 5 uitables besides the header. Why I'm doing that was the issue of my last question, resulting in the shown table. Fully executable code you can find in the answer here (or a minimal example below). Solutions using a general GUI are also there, but it would blow up the code too much, and actually it just seems to be a kind of bug. It can be seen that everytime I jump to the next

Is it possible to prevent an uitable popup menu from popping up? Or: How to get a callback by clicking a cell, returning the row & column index?

删除回忆录丶 提交于 2019-11-28 11:19:43
For an user interface I'm programming an uitable . The user chooses an option A,B or C in the first column and the suboption in the second column depends on what was chosen in the first, either A.1,A.2 or A.3 or B.1,B.2 or B.3 or the same for C The code for the table can be found in Appendix A . When the user first defines the main option, then automatically the suboptions are reduced accordingly to only valid choices. This is realized by evalulating the CellEditCallback for column 1 and resetting the ColumnFormat for column 2. (function modifySelection in Appendix B ) If the user now realizes