Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
phpEnter 5.1.
Udemy Clone script 2.01
VisualNEO Web 19.11.7
VisualNEO for Windows 19.4.29.0
SentiVeillance SDK Trial 7.3
Devart ODBC Driver for PostgreSQL 3.2
SecureBridge 9.2
dotConnect for QuickBooks 1.9
dotConnect for Magento 1.9
dotConnect for Zoho CRM 1.10
dotConnect for FreshBooks 1.10
IP2Location Geolocation Database January.2020
dotConnect for BigCommerce 1.10
HTMLPad 2020 16.0
WeBuilder 2020 16.0
Top Code
SecureBridge 8.0
IP2Location Geolocation Database January.2020
Progressive Switching Median Filter 1.0
ATN Site Builder 3.0
ATN Resume Finder 2.0
Usage of Operator Overloading in C#
RADAR simulation 1.0
PHP Review Script 1.0
Perl Black Book, 2nd Edition
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
Devart ODBC Driver for PostgreSQL 3.2
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Solid File System OS edition 5.1
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Apply a function to a specific field of a structure 1.0
File ID: 84288






Apply a function to a specific field of a structure 1.0
Download Apply a function to a specific field of a structure 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 30.7 KB
Downloads: 3
Submit Rating:
Apply a function to a specific field of a structure 1.0 Description
Description: 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);

License: Shareware

Related: parameters, outputs, output, basketbag, optional, Input, Target, applied

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 30.7 KB

Downloads: 3



More Similar Code

Returns the distribution of the function FUN applied to the set of distributions given in VARARGIN
PDFFUN Apply a function to a set of probability distributions
[S,P,C]=PDFFUN(FUN,VARARGIN) will return the distribution of the function FUN applied to the set of distributions given in VARARGIN

The output vectors, S, P, and C, are respectively the list of unique outcomes, probability of yielding that outcome, and the total...



The MultiThread module provides a simple abstraction to execute a function on many sets of arguments in parallel using a bounded pool of threads.



This functions allows the user to apply a function of his choice to all video frames- frame by frame.
Consider a case you have a function you're used to apply to single images like imfilter, imresize, imadjust, imcrop etc... (see Matlab Image...



map() applies a function to a list of data sequentially. This is a variation to map that execute each function call concurrently in a thread.



A function to automate bacterial colony counting in images of plated agar in a Petri dish.
Provides colony_count.m to automate counting of bacterial colonies.

The approach is as follows:

1. Use Hough transform to locate...



If you have a function that calls another, passing through an argument, you likely want the default argument of your function to match that of the called function.

Deferred default arguments is what I call the technique of using a...



This includes a function to read in the standard flow cytometry FCS format data and examples of how to visualize the data.



The zip file includes the model description in a pdf file, a simulink model of the steam condenser, a function to perform Reaction Curve PID tuning and an m-file to run the model.

The m-file can be used to learn how to use the Reaction...



This is a toolbox to compute the subband structure of the quantum cascade lasers without conduction band nonparapolicity effect.



A function to convert a number to a more readable format by adding thousands separators.

This very simple function lets you choose the thousands separator character and the number of decimal spaces to return. Any character (including...

User Review for Apply a function to a specific field of a structure
- required fields
     

Please enter text on the image