Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.143.490 Times

Editable Table in MATLAB 1.0

  Date Added: March 23, 2013  |  Visits: 203

Editable Table in MATLAB

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)

This provides a table as a separate MATLAB script which can be called from any figure. The table can reside within a figure with other UI controls. The fields can be edited and the table can be scrolled. Numeric or string fields are supported. More than one table per figure should be possible.You can create a table as follows (just running the script with no arguments does this):fig = nf;tbl = axes('units', 'pixels','position', [10 10 400 100]);cell_data = {...'Alpha', 1, 2, 3,'';...'Bravo', 4, 5, 6,'';...'Charlie', 7, 8, 9,'';...'Dog', 10,11,12,'';...'Echo', 13,14,15,'';...'Foxtrot',16,17,18,'';...'Golf', 19,20,21,'';...'Hotel', 26,27,28,'';...};columninfo.titles={'Param','Lower Limit','Upper Limit',... 'Initial Value','Result'};columninfo.formats = {'%4.6g','%4.6g','%4.6g','%4.6g','%4.6g'};columninfo.weight = [ 1, 1, 1, 1, 1];columninfo.multipliers = [ 1, 1, 1, 1, 1];columninfo.isEditable = [ 1, 1, 1, 1, 0];columninfo.isNumeric = [ 0, 1, 1, 1, 1];columninfo.withCheck = true;columninfo.chkLabel = 'Use';rowHeight = 16;gFont.size=9;gFont.name='Helvetica';mltable(fig, tbl, 'CreateTable', columninfo, rowHeight, cell_data,... gFont);When you click on a cell which is "Editable", the cell changes color. When you click again, the editing cursor appears and you can edit the cell contents. To finish editing, press then Enter key or click on another cell.If you use the table in a GUI form designed with GUIDE, you probably want to end the editing when you click on another part of the form. To do this, add the following lines after the one which creates the table:endfcn = sprintf('mltable(%14.13f, %14.13f, ''SetCellValue'');',... hObject,handles.tblParams);set(hObject,'buttondownfcn',endfcn);To get the current table contents, use:info = get(tbl,'UserData');data = info.data;The variable "data" now contains a cell array of the table contents.This describes the "columninfo" structure:Titles: array of strings to place above each column. Use '' for non-labeled columns.Weight: array of column widths. Use 1 for unit width, > 1 for wider columns. This does not work for column 1 (bug!)Multipliers: Use to scale numeric values. For instance, if Multiplier for column 2 is set to .01, then the value displayed in column 2 will always be 1/100 of the value in the data array.Formats: sprintf style formats for each column. Ignored for non-numerics. Use '%f' if in doubt.IsEditable: array of 1s and 0s for each column. 0 means column is read-only.isNumeric: array or 1s and 0s for each column. 1 means treat column as numeric (will do scaling by Multiplier, check for non-numeric input, and will store the value as a number, not a string.)withCheck: optional field; if set to "true", the table will have a column of checkboxes along the left side.chkLabel: optional field: if set to a string, this will be placed above the column of checkboxes if there is one.rowsFixed: the table won't have buttons for insert/delete rows, even if some fields are editableHow to use check boxes:If use set a field named 'withCheck' in columnInfo to 'true', then the table will have a column of checkboxes along the left hand side. You can set the initial state of the check boxes with code like this:for ii = 1:numrows mltable(fig, tbl, 'SetCheck',[],[],[],[],ii, checkval(ii));endassuming that checkval is a vector of 1s and 0s to determine the initial state.After the figure is created, you can get the state of the checkboxes with code like this:data = get(tbl, 'UserData');checkval = data.isChecked;and now checkval is a vector of 1s and 0s depending on the checkbox states.How to use DoubleClickYou can have the table call your own routine when the user double clicks on a cell.mltable(fig, hobj, 'SetDblClick', 'Myfunc', 'fmt_str');where 'Myfunc' is a string naming the function to call, and 'fmt_str' is a string representing additionial arguments. If you are using the table in a Guide figure, use SetDblClick like this:mltable(gcf, handles.tbl, 'SetDblClick', [], [], [], [], 'myfig', 'dblClick_Callback');where 'myfig' is the name of the main figure and dblClick_Callback is a function within that figure's main file.Your function will be called as[] = Myfunc(hObject, [], handles, arg1, arg2, ...)where arg1, arg2, etc are the argument names you passed to SetDblClick in the format string.(Based on code by a colleague, Greg Gershanok, with his permission.)

Requirements: No special requirements
Platforms: Matlab
Keyword: Boxes Checkboxes Columninfo Field Initial Named Number Onerowsfixed Optional Quottruequot Sidechklabel State Store Stringwithcheck True Withcheck Won
Users rating: 0/10

License: Shareware Size: 10 KB
EDITABLE TABLE IN MATLAB RELATED
Games  -  100 Boxes 1.2
A simple but challenging puzzle * Fill all the boxes in consecutive order from 1-100. * If you move horizontal or vertical, you must skip over two boxes to get to your next number. * If you move diagonal, you must skip over one box to...
3.9 MB  
Information Lookup  -  Mobile Number Tracer 1.0
Mobile Number Tracer traces the information about any mobile number code like Service Provider, State, or Reference City. It is useful for tracing out from where a user got a missed call. Mobile Number Tracer is valid for India only. It also...
 
Web Site Promotion  -  Webix Form 1
A nice looking Webix Form helps you easily get important information from users. It consists of useful elements like input fields (namely text and text area widgets), select boxes, checkboxes, radiobuttons and approve/cancel buttons. Webix...
1.23 MB  
Entertainment  -  cgpa_calculator 1.3.0.0
This application is used for calculating cummulative gpa. user needs to input a character(a-e) in the grade text field and a number in credits text field. this allows user to calculater his/her cgpa just by entering his/her grade and credits in...
1024 KB  
Development Tools  -  loadOptions 1.0
Often one desires to write a function that takes a large number of optional arguments. One way to do this is to allow for an arbitrary number of option name-value pairs in the function argument:function r = f(a,b,c,name1,value1,...)This method has...
10 KB  
Development Tools  -  SPIDER simulation 1.0
This script simulates an electromagnetic pulse, a spectral phase interferometry for direct electric field reconstruction (SPIDER) measurement and reconstruction and compares it to the true electric field in time in the presence of noise (additive,...
10 KB  
Photo & Video  -  Best Secret Folder 2.0.0.0
"Best Secret Folder is a powerful and free way to protect your private photos and videos. It's easy to use, offers a number of optional levels of security and cleverly blends in with your existing apps." USA Today Protect safely and...
17 MB  
Networking  -  Meta Extension 1.0
This plugin takes a simple concept of giving you fields to enter information that use the meta tags built into Wordpress and expands on it. Modifying conf.ini in the plugin directory will allow you to enter custom fields to the Posts pages to add...
10 KB  
Education  -  StagePlotPro 2.6
Choose an ???*NsInstrument???*N? from the menubar, it will appear in the ???*NsLoad-In???*N? window, and you will drag it to the desired position on the ???*NsStage???*N?. ???*NsInstruments???*N? include everything from drums to microphones,...
35.4 MB  
Form Processors  -  Fake Select 1.1
This script will replace conventional select boxes with Fake Select boxes with additional customising features.Any number of 'Fake' select boxes may be rendered on a page.
10 KB  
NEW DOWNLOADS IN SCRIPTS, MULTIMEDIA
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Multimedia  -  RMCA Realtime MIDI Chord Arranger Pro 4.2.8.0
RMCA Pro is an auto-accompaniment software which offers all major features of a high quality MIDI keyboard. It comes with chord recognition, based auto arranger, style creator, LeadSheet editor, recording section, up to 16 fingered and 10...
1.53 MB  
Multimedia  -  Spectrum Analyzer pro 2015
This sophisticated piece of software turns your computer into a modern, State-of-The-Art spectrum analyzer giving you features that go far beyond the possibilities of any stand-alone hardware unit -VST Plugin support-Leq (m) movie calculator Leq...
22.61 MB  
Multimedia  -  Multi Level Meter Bridge 2015
PAS Multi Meter Bridge can be configured in a number of different ways, to accurately model the ballistics, responses and graphics of a wide range of standard peak programme meters. These meters currently include the following:IEC 268-10 Type I...
5.22 MB  
Multimedia  -  DTMF Tone Decoder 2015
Why use an audio spectrum analyzer? For those of you that have done video installations, would you install a camera and lens without a monitor to see what you are doing? Why would you do an audio installation without seeing what you are doing? The...
4.09 MB  
Multimedia  -  Frequency Generator 2014
NEW in this version Oscilloscope srcoller and accelerator Efects like Peak and Splitt Oscilloscope kinds like Con. Lines, Dots, Mir Lines, Spikes, Vert. Lines Analyse the real time input in the Oscilloscope Now you can record the generated Tones...
2.01 MB