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

Pack & Unpack variables to & from structures with enhanced functionality 1.0

  Date Added: July 14, 2013  |  Visits: 402

Pack & Unpack variables to & from structures with enhanced functionality

Report Broken Link
Printer Friendly Version


Product Homepage
Download (40 downloads)



v2struct has dual functionality in packing & unpacking variables into structures and vice versa, according to the syntax and inputs.Function features: * Pack variables to structure with enhanced field naming * Pack and update variables in existing structure * Unpack variables from structure with enhanced variable naming * Unpack only specific fields in a structure to variables * Unpack without over writing existing variables in workspaceIn addition to the obvious usage, this function could by highly useful for example in working with a function with multiple inputs. Packing variables before the call to the function, and unpacking it in the beginning of the function will make the function call shorter, more readable, and you would not have to worry about arguments order any more. Moreover you could leave the function as it is and you could pass same inputs to multiple functions, each of which will use its designated arguments placed in the structure.Moreover, the function enables extracting specific fields from a structure according to field names. This enhances the flexibility and ease of use of structures, for example it allows you to pass same inputs as structures to multiple functions, each of which will use its designatedarguments placed in the structure.Some examples: Simple pack: x = zeros(3); y = 'Testing123'; z = cell(2,3); fieldNames1 = {'fieldnames','x','y','z'}; fieldNames2 = {'fieldnames','a','b','c'}; >> S = v2struct(x,y,z) S = x: [3x3 double] y: 'Testing123' z: {2x3 cell} pack with different field names: >> S = v2struct(x,y,z, fieldNames2) S = a: [3x3 double] b: 'Testing123' c: {2x3 cell} update existing structure with additional field: >> S.oldField = 'field to be saved for future use' >> S = v2struct(x2, nameOfStruct2Update, fieldNames3) S = oldField: 'field to be saved for future use' x: [3x3 double] simple unpack: S.x = zeros(3); S.y = 'Testing123'; S.z = cell(2,3); fieldNames3 = {'y'}; >> v2struct(S) y y = Testing123More examples, further comments and demo usage are available inside the .m file and the demo functions.Comments, suggestions, bug reports and any other feedback is welcomed at adi.navve[at]gmail[dot]comInspired by the function 'mmv2truct' from the Mastering Matlab Toolbox (available free) by D.C. Hanselman, University of Maine, Orono, ME 04469 4/28/99, 9/29/99, renamed 10/19/99 Mastering MATLAB 5, Prentice Hall, ISBN 0-13-858366-8available at: http://www.eece.maine.edu/mm/MM6/tbx.html

Requirements: No special requirements
Platforms: Matlab
Keyword: 039y039 Fieldnames Future Nameofstruct Update Oldfield Saved Structs Structx Testing Use039
Users rating: 0/10

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


PACK & UNPACK VARIABLES TO & FROM STRUCTURES WITH ENHANCED FUNCTIONALITY RELATED
Modules  -  Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target...
20.48 KB  
Misc. Web Browser Tools  -  Cache and Save 2.0
This program is very useful for those who frequently use the internet. Instants of Internet Web pages can be saved by one mouse click, with user highlighted parts i.e. the user need not wait for saving or downloading operations. Thousands of...
1.53 MB  
Networking  -  Advanced Twitter Widget 1.1.2
A widget that will enable visitors to add twitter account or return search results, with a custom number of maximum results per account/search. It's easy to use , flexible and has multiple displays by two(so far) types of content. More will be...
10 KB  
Backup Utilities  -  DriveClone 3.05
Make an exact copy of your hard drive, including system setting and partition information, and save it as a compressed image to CD, DVD, or to an external hard drive. Copy your disk image onto a new hard drive for rapid recovery from hard disk...
90.51 MB  
Web Authoring  -  Xplosive VX 1.0
Xplosive VX is a powerful animation software, that creates Flash banners, intros, and buttons for all web projects. Xplosive VX provides the ability to add image files, MP3 sounds and publishes to the Flash format (SWF). Impressive animations can...
8.76 MB  
Backup Utilities  -  PC Vaccine Personal 2.0
PC Vaccine Personal is an easy to use, powerful backup and recovery solution, which integrates system snapshot, complete system backup, file backup, and incremental backup. PC Vaccine Personal’s unique instant snapshot technology creates a...
84.4 MB  
Automotive Information Databases  -  Database Migration Tool For MS Access 2.0.1.5
Download MS Access to My SQL database migration software that provides quick DB conversion services that convert single table or multiple tables of mdb file (password protected) into equivalent MySQL database server with support of all rows,...
2.17 MB  
Business  -  Purchase Order Templates 2.0.1.5
Password protected inventory tracking application generates various sales/purchase and invoice reports to calculate sales and purchase transaction details of your Company. Purchase order database management software is an easy to use tool which...
4.03 MB  
Accounting Tools  -  Future Value of Savings Calculator 1.4.14
Future Value of Savings Calculator quickly shows you what your savings may be by displaying a range of 77 possible scenarios based upon different interest rates and saving amounts. Future Value of Savings Calculator is a comprehensive annuity...
1.98 MB  
Web Searching Tools  -  SEOSmart Future PR 1.5
SEOSmart Future PR checks 94 Google data centers to obtain your Web site's Google PageRank with a single click. The new SEO tool is completely free to use, and returns all 94 results in a matter of seconds thanks to the use of multiple threads to...
464.79 KB  
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