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.474.957 Times

putvar (Sripts) 1.0

  Date Added: September 14, 2013  |  Visits: 246

putvar (Sripts)

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 downloads)



(This function was suggested to me as a counterpart to the uigetvar function.)The putvar tool allows you to assign a variable from a function workspace directly into the base workspace. I can envision this tool having value in one of two ways.First, during a debugging session, one might wish to save one or more variables from the function workspace into the base workspace. This way those variables will still exist after the debugger has terminated and you have exited from the function.A second use for this tool is as an alternative way to return a variable (or variables) from a function, possibly a GUI, during the operation of that GUI.As an example of the operation of this code, here is a simple function that uses putvar. Note that you can provide either a variable in the workspace as input, or the name itself of the variable. Either mode of operation works.% ==================function testputvarA = 3;B = 23;C = pi/2;D = 'The quick brown fox jumps over the lazy dog';putvar(A,'C',D)% ==================Save the function testputvar.m on your search path.Then at the command line in MATLAB, try this. First, clear your workspace. Clear ensures that no variables exist initially in the base workspace. Then run the function testputvar, and finally execute the who command, all at the command line.>> clear>> testputvar>> whoYour variables are:A C DThe output from who tells it all. Inside the function testputvar, we had defined four variables, A, B, C, and D. But after testputvar terminates, its variables will fall into the bit bucket, disappearing into limbo. The putvar call inside testputvar ensures that the variables A, C, and D are returned into the base workspace, yet no return arguments were provided.In the event that you wanted to assign all of the variables from the caller workspace, just do this inside your function...W = who;putvar(W{:})I had considered wrapping a GUI around putvar, probably called uiputvar, but I don't see much benefit there, whereas the uigetvar tool truly does need to be a GUI.

Requirements: No special requirements
Platforms: Matlab
Keyword: Bucket Defined Ensures Execute Finally Initially Inside Output Tells Terminates
Users rating: 0/10

License: Shareware Size: 10 KB
USER REVIEWS
More Reviews or Write Review


PUTVAR (SRIPTS) RELATED
Database Tools  -  swemc 1.0
swemc can connect of a MySQL database, execute SQL query and output the query results in HTML tables.Functions of swemc:- Execute select, update, insert and delete SQL queries- Output query results in HTML tables that can have their presentation...
10 KB  
Libraries  -  Sys::OutPut 2.1
Sys::OutPut is a Perl module to help make output easier. SYNOPSIS usage Sys::OutPut; talk $fmtstr [, @args]; out $fmtstr [, @args]; put $fmtstr [, @args]; err $fmtstr [, @args]; debug $fmtstr [, @args]; $Sys::OutPut::quiet =...
10.24 KB  
Form Processors  -  Form Dependency Manager 1.1
This is a form dependency script for shuttling the display of fields within a complex form, where the visibility of a form field should depend on the value and/or state of another. It's not meant to replace server side scripting for dictating what...
102.4 KB  
Modules  -  Bad Word Filter 1.0.0
Bad Word Filter (BWF) is a FREE! plugin for Joomla 1.5It's functionality is pretty simple: Find a word from a user-defined list and replace it with some user-defined HTML.Especially useful for sites who allow front-end article editing to users....
10 KB  
Development Tools  -  Laminate Analysis Program 1.0
This program consists of two file:1) Laminate.m2) input.dat(input.dat) needs to be modified according to the laminate to be analysed. All the plies properties and loadings goes into this input file. The program produces an output file containing...
10 KB  
Graphics Editors  -  Easy Watermark Creator 3.6
Easy Watermark Creator is an easy-to-use tool for adding visible watermarks to your pictures and photos. Reasons to use Easy Watermark Creator: - protection from unauthorized use of your pictures on the Web; - as an image constructor by...
7.8 MB  
Programming  -  R 2.5.1
R is a language and environment for statistical computing and graphics. R is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and...
10.4 MB  
Libraries  -  Module::Versions 0.02
Module::Versions is a Perl module to handle versions of loaded modules with flexible result interface. SYNOPSIS use Module::Versions; # Simple Interface list Module::Versions; # prints formatted results to STDOUT Module::Versions->list; #...
21.5 KB  
Video Editors  -  OneClick Video Converter 10.0.1.82
OneClick Video Converter is a predominant video converter designed to accommodate your video and audio converting needs. With OneClick Video Converter you can convert almost all video and audio formats, such as 3GP, WMV, RM, MP4, MPEG, SWF, AVI,...
53.22 MB  
Audio Editors  -  iPad 2 Converter Suite 4.1.30
Tipard iPad 2 Converter Suite enables you to convert any DVD or video files to iPad 2 compatible video and audio formats. It provides you with three necessary iPad 2 converters and transfer: iPad 2 Video Converter, DVD to iPad 2 Converter and iPad...
35.5 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
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  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB