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

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

Serving Software Downloads in 956 Categories, Downloaded 50.213.458 Times

Editable Table in MATLAB 1.0

  Date Added: March 23, 2013  |  Visits: 315

Editable Table in MATLAB

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 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
USER REVIEWS
More Reviews or Write Review


EDITABLE TABLE IN MATLAB RELATED
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  
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  
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  
Modules  -  Dynamic Field 6.x-1.0
Dynamic Field is a CCK field that returns a textarea where you can enter custom PHP code. The code is computed real-time and lets you access Drupal objects like $node, $user...Note:This is not a duplicate of ComputedField! ComputedField computes...
10 KB  
Development Tools  -  Efficient Conjugate Gradient Method for Symmetric Banded Matrix 1.0
This code uses conjugate gradient method to solve the linear systemAx= b, where A is symmetric and banded. A is first stored in acompactstorage mode, using the function "compactstorage", and thenconjugate gradient method is applied to the...
10 KB  
Networking  -  Simple Sticky Posts 0.1
Adds simple sticky posts feature to WordPress blogs.Installation : 1. Upload simple-sticky-post.php to the /wp-content/plugins/ directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. To set up a sticky post add a custom field...
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  -  isimSoftware CountDown Timer 1.0.2
isimSoftware CountDown Timer isimSoftware countdown timer for Windows, written for show operators by a show operator. Simple intuitive user interface with plenty of options hidden underneath. Displays time remaining, current time and a message...
421 KB  
Multimedia  -  Audio Reader XL 2020 20.0.1
Text to Speech Software Audio Reader XL reads aloud text easily. It’s text to speech software for reading eBooks, texts, web pages, and creating MP3s. The voice aloud reader read-aloud any kind of texts like - Any kind of texts - TXT text -...
73.26 MB  
Multimedia  -  Multi Level Meter Bridge 2020
With the new function Peak Detector you can control very accurate the Input of different Levels in a control rooms. Correlation Meter, In a logfile you are able to comprehend when and what kind of Level is under a threshold. PAS Multi Meter Bridge...
5.29 MB  
Multimedia  -  Spectrum Analyzer pro Live 2020
Spectrum Analyzer Pro Live turn your PC into a cutting-edge sound analysis tool! Dante WDM If you are a professional musician, acoustics expert or just a hi-fi enthusiast who wants to make sure that his audio system is perfectly tuned and plays...
12.86 MB  
Multimedia  -  Graphic Equalizer Studio 2020
you can run any windows sound application or DVD Player software above the Equalizer. The Equalizer will correct the audio stream automatic and will include the Limiter and the compressor to be sure, that the audio signal is not to loud or not to...
25.72 MB