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
C# QR Code Generator 4.0.2.2
Salesforce WordPress Customer Portal 3.2.0
Single Leg MLM 1.2.1
OzGIS 14.6
Quick Maps For Dynamics CRM 3.1
Job Board Software 4.2
PHP Real Estate Script 1.3.2
IP2Location Geolocation Database April.2019
dbForge Data Generator for Oracle 2.1
VisualNEO Web 2018.12.15
SentiMask SDK Trial 1.0.0
OrgChart JS 4.6.4
dotConnect for BigCommerce 1.8
FedEx Smart Shipping For Magento 1.0.0
Database Workbench Pro 5.6.2.311
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Modbus RS232 ASCII Communication Functions 1.0
CardCheck COM DLL for Credit Card Processing 1.1
Efficient K-Means Clustering using JIT 1.0
webmoney - Webmoney payment gateway 5.x-1.2
Azizi search engine script PHP 4.1.10
Cuckoo Search (CS) Algorithm 1.0
Hyperion Tools 1.0
bit plane slicing 1.0
PasDos 1.0
Another PHP Counter 1.0
JavaScript Webix DataView 1.7
mCore Pro - SMS & WAP Push Component 1.VI
vNews 1.II
Strx Simple Sharing Sidebar Widget 2.0.2
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
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
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.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