inputgui Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: inputgui.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Tobin Driscoll (View more)

inputgui script description:




Publisher review:
inputgui - A simple, flexible, and overridable graphical replacement for INPUT. INPUTGUI allows a user to set function parameters through an input dialog window. It's meant to be a replacement for INPUT. Among its virtues is that the dialog popup can be overriden either by accepting defaults or by assigning (some of the) values through the function call. It's also meant to be very easy to use.The standard calling sequence isvalue = INPUTGUI(name,default,prompt)Arguments name, default, and prompt are identically sized cell arrays of strings. They define the names, default values, and interactive prompt strings for the parameters, which are assumed to be numerical.On exit, each parameter value will be assigned *in the caller's workspace*. INPUTGUI(name,default,prompt,isstring) adds a logical vector that designates corresponding parameters as strings.INPUTGUI(...,action) modifies the behavior:'default': Default values are returned for all parameters (no dialog is opened). struct: Each parameter will have the default value unless overridden by a field of the same name (no dialog).[]: Standard behavior.For example, suppose you wrote the functionfunction y = inputtest(varargin)name = { 'Moe', 'Larry', 'Curly' };default = { '1/pi', '[-1 0 1]', 'silly' };prompt = { 'Value of Moe', 'Value of Larry', 'Value of Curly' };isstring = logical( [0 0 1] );vals = inputgui(name,default,prompt,isstring,varargin{:})whos Moe Larry CurlyThen we get>> inputtest % Brings up a dialog. Press OK and...vals = [ 0.3183][1x3 double]'silly'Name Size Bytes ClassCurly 1x5 10 char arrayLarry 1x3 24 double arrayMoe 1x1 8 double array>> s.Larry = 16; inputtest(s) % No dialog appears...vals = [0.3183][ 16]'silly'Name Size Bytes ClassCurly 1x5 10 char arrayLarry 1x1 8 double arrayMoe 1x1 8 double arrayThe return argument "value" will be a cell array of the assigned values, as strings. You can assign this to a persistent variable and use it on the next call as the default. Requirements: ยท MATLAB Release: R13
inputgui is a Matlab script for Development Tools scripts design by Tobin Driscoll. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5