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 29.544.019 Times

Apply a function to a specific field of a structure 1.0

  Date Added: August 07, 2013  |  Visits: 238

Apply a function to a specific field of a structure

Report Broken Link
Printer Friendly Version


Product Homepage
Download (18 downloads)



This function searches in the fields of a structure, and applies a given function to all occurrences of a specific field. dlTe September 30th, 2009, By Reza Farrahi Moghaddam, Synchromedia Lab, ETS, Montreal, Canada USAGE: temp_structure = apply_func_on_all_fields_with_name(temp_structure, field_name, func_id, data_bag); where temp_structure: The input structure field_name: The target field name func_id: The function that will be applied to the target fields data_bag: (optional) A basket/bag to pass the parameters to the func_id Outputs temp_structure: The output structure Below, an example is provided. sample_struct.check = 5; sample_struct.level.check = 4; sample_struct.level.other = 'a'; sample_struct.level.another.test = 7; sample_struct.level.another.check = -2; % apply the 'sqrt' function to the 'check' fields of the structure sample_struct = apply_func_on_all_fields_with_name(sample_struct, 'check', @sqrt);

Requirements: No special requirements
Platforms: Matlab
Keyword: Applied Basketbag Input Optional Output Outputs Parameters Target
Users rating: 0/10

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


APPLY A FUNCTION TO A SPECIFIC FIELD OF A STRUCTURE RELATED
Libraries  -  IO::InSitu 0.0.2
IO::InSitu is a Perl module to avoid clobbering files opened for both input and output. SYNOPSIS use IO::InSitu; my ($in, $out) = open_rw($infile_name, $outfile_name); for my $line ( ) { $line =~ s/foo/bar/g; print {$out} $line; }...
6.14 KB  
Networking Tools  -  lifstat 2006-10-31
lifstat is a small Linux utility that reads /proc/net/dev and reports input and output statistics for network interfaces. Edit the Makefile to change PREFIX from the default /usr/local if you want. $ make ($ su) $ make instal Whats New in...
5.12 KB  
Audio Tools  -  oss2jack 0.24
oss2jack creates an OSS device which redirects its input and output to the Jack Audio Connection Kit. oss2jack supports a large subset of the OSS specification, including full duplex I/O and mmap. oss2jack uses Jeremy Elsons useful fusd library...
92.16 KB  
Libraries  -  libspectrum 0.2.2
libspectrum is a library designed to make the input and output of some ZX Spectrum emulator files slightly easier. libspectrum is intended to be usable on Unix variants, Mac OS X and Win32. Currently, it is mainly (only?) used by Fuse, but other...
 
Libraries  -  Bio::Phylo::IO 0.17 RC6
Bio::Phylo::IO Perl module contains input and output of phylogenetic data. SYNOPSIS use Bio::Phylo::IO; # parsing a tree from a newick string my $tree_string = (((A,B),C),D);; my $tree = Bio::Phylo::IO->parse( -string => $tree_string, #...
143.36 KB  
Audio Tools  -  OpenAL mixer For Linux 1.2.0
OpenAL mixer aims to provide a multiplatform API built on top of OpenAL to get/set volume values (including support for capture devices) and list, select and mute input and output lines.
10.24 KB  
Development Editors  -  Auto Debug for x64 2.4
An api monitor tool which can automatic tracing all apis input and output parameters. this application will auto trace the target program and monitor the input and output of function call. The software can help us to analysis program errors,...
1.79 MB  
Science  -  auto-nng 1.3
auto-nng is a software for analysis and classification of data, using artificial neuronal networks. You can feed an amount of datasets consisting of certain input and output parameters into the program, to make it try to find a mathematical...
9.22 KB  
Libraries  -  DirectShow 3D Video Mixer Filter 1.3
The 3D Video Mixer Filter is a video multiplexer that accepts multiple input streams and outputs a single stream. This filter exposes an input pin for each incoming stream and uses the Microsoft DirectX 9 3D rendering capabilities. Each video...
2.6 MB  
Development Tools  -  State Space to Transfer Function 1.0
This code demonstrates how to convert a dynamical multi input multi output (MIMO) system from state space form to Transfer function form. Here you can provide the A, B, C, D matrices describing the dynamics of your system (or use function rss() to...
10 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  -  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  
Development Tools  -  Barnardextest 1.0
This file, as the Fisher's exact test, performs the exact probability test for a table of frequency data cross-classified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a non-parametric...
10 KB