matlab-uitable

How can l assign values in uitable?

て烟熏妆下的殇ゞ 提交于 2020-01-24 21:10:06
问题 I am trying to figure out how can I assign values in uitable. I got the table size from my data matrix automatically and I am able to define values in first two columns as I want but I don't know how can I fill the third column. Is that possible to fill this column by hand? During trying to fill third column I am getting a Warning: Table data is not editable at this location. Appreciate for your help. a = text2(:,(1:c11)); b = in_matrix(1,(1:c11)); cnames = {'Name','Name','Value'}; rnames = 1

Changing the background color of a table cell in matlab using html content

纵饮孤独 提交于 2020-01-03 04:55:06
问题 we know that uitable supports html content for an example similar to what I want see here to solve the problem I asked before I used this code in the callback of a button in matlab: color = uisetcolor; numberOfClasses = str2num(get(handles.edtNumClass,'String')); if handles.index == 0 handles.tableData = cell(numberOfClasses,2); guidata(hObject,handles); end handles.index = handles.index+1; handles.tableData(handles.index,1)=cellstr(get(handles.edtNameClass,'String')); handles.tableData

Does MATLAB allow a uicontrol button to be placed within a cell in a uitable?

我是研究僧i 提交于 2019-12-24 12:27:40
问题 I want to place a uicontrol button in each row of a uitable. Does MATLAB have the native functionality for this, or do I need to use Java/HTML? 回答1: As far as I know, this is not possible using standard MATLAB. You can use the CellSelectionCallback and CellEditCallback of the uitable together with the MouseClickedCallback of the corresponding uitablepeer to provide a button-like functionality for standard table cells. See this thread for more infor on the MouseClickedCallback . An easier way

How to customise JIDE grids in Matlab

泪湿孤枕 提交于 2019-12-24 03:08:01
问题 I am using JIDE grids for loading huge data tables in a uitable format. My main reason for using JIDE grid was to have a working filtering and sorting ability. There are filter/sorters available out there which can be hooked with old uitable and are easier to configure but most sort lexically rather than numerically. I believe that is due to Matlab's underlying data class. So far, JIDEs inbuilt filtering is working well and uitable loads even faster than old version of uitable in Matlab when

Display multiple uitable objects in the same figure?

江枫思渺然 提交于 2019-12-23 16:47:35
问题 I would like to display several tables in the same MATLAB figure, much the same as subplot can be used to display multiple graphs. However, it seems that subplot does not apply to uitable objects. As you can see, instead of five tables distributed across the figure, I am getting five sets of empty axes, and only one of the tables is visible. Is there a way to do this in MATLAB? EDIT: Much better after applying the answer supplied below! 回答1: The parent of a uitable is a figure or uipanel

Matlab uitable data selection

好久不见. 提交于 2019-12-22 11:18:00
问题 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? 回答1: You should edit the CellSelectionCallback and the CellEditCallback properties of your table. set(myTable,`CellSelectionCallback`,

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-12-17 19:42:38
问题 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

How to modify uitable cell color according to data in table (in Matlab)?

微笑、不失礼 提交于 2019-12-17 18:45:57
问题 I have a matlab function that returns results in a uitable. There are 2 columns and lots of rows to the table: first column is "values" and second column is a "safety threshold/confidence interval" of sorts. I'd like to format the output so that certain cells get painted red: those for which the "value" in column 1 exceeds the corresponding "safety threshold" in column 2. Is there a way to do this using just Matlab? PS: I am aware of the following page: http://www.mathworks.de/matlabcentral

Weird symbols on coloring specific cell data in uitable

血红的双手。 提交于 2019-12-12 10:14:06
问题 I referred to this answer in coloring specific rows of a table in the GUI, however, I get some weird symbols instead of actual numbers present in those rows as shown below: This is the line of code I am using to color: DataTable = [num2cell(handles.zRaw), num2cell(handles.pRaw), num2cell(handles.zMob),... num2cell(handles.PressGrubbs), num2cell(handles.PressRosner), handles.OutlCheckGRubbs,... handles.OutlCheckRosner, num2cell(handles.iZones), num2cell(handles.iExcessPress)]; %# Use HTML to

Table data is not editable at this location, why won't this checkbox let me check it?

。_饼干妹妹 提交于 2019-12-11 12:05:36
问题 f = figure; columnname = {'X' , 'Y'}; Selection = {'A','B','C','D','E'} [vals{1:numel(Selection),1}]=deal(false) columnform = {'logical','logical'}; t = uitable('Data',vals,'ColumnName', columnname, 'ColumnFormat', columnform,'ColumnEdit',[true true true], 'RowName', Selection); If you run this script it should spit out a figure. but i can only select the checkboxes in the X column of the table. Why is that? 回答1: Tha's because the variable vals does not contain sufficient data to fill the