Home > By category > Scripts >Development Tools > RenameField



RenameField

  • Downloads: 
  • Views: 
  • Rating:

RenameField - Rename a fields of a struct

T = RenameField(S, Old, New)
INPUT:
S: Struct or struct array.
Old: String or cell string, name of the field to be renamed.
New: String or cell string, new field name, which must be a valid Matlab symbol.
OUTPUT:
T: Struct S with renamed fields.

EXAMPLES:
S.A = 1; S.B = 2;
T = RenameField(S, 'B', 'C'); % >> T.A = 1, T.C = 2

This function was created after a discussion in Loren's blog:
http://blogs.mathworks.com/loren/2010/05/13/rename-a-field-in-a-structure-array

Tested: Matlab 6.5/2009a, WinXP 32 bit, LCC2.4/3.8, BCC5.5, OpemWatcom 1.8, MSVC 2008
Compatibility to 64 bit, Linux, MacOS is assumed.

Look in the C-file for instructions to compile the Mex file at first.
A slower M-version is included, but disabled by a call to ERROR. The M-version does not check the validity of the new names.

Free download from Shareware Connection - RenameField - Rename a fields of a struct T = RenameField(S, Old, New) INPUT: S: Struct or struct array. Old: String or cell string, name of the field to be renamed. New: String or cell string, new field name, which must be a valid Matlab symbol.

Publisher: Jan Simon | License: Shareware
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 09-04-2013 | Rating: 0 | Title: RenameField

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/28516/2/RenameField_13Feb2011.zip

More downloads from RenameField publisher Jan Simon:

ScaleTime - ScaleTime - fast linear matrix interpolation

DNorm2 - Fast euclidian norm over N.th dimension of a DOUBLE array

DateStr2Num - DATESTR2NUM - Fast conversion of DATESTR to DATENUM

FilterM - FilterM, FiltFiltM: Fast digital filter

strncmpr - Compare last N chars of strings or cell strings

RenameField keywords:
RenameField related downloads:

Devart ODBC Driver for SQL Server - Devart ODBC Driver for SQL Server provides high-performance and feature-rich connectivity solution for ODBC-based applications to access SQL Server databases from Windows, Linux, MacOS, both 32-bit and 64-bit.

Devart ODBC Driver for PostgreSQL - Devart ODBC Driver for PostgreSQL provides high-performance and feature-rich connectivity solution for ODBC-based applications to access PostgreSQL databases from Windows, Linux, MacOS, both 32-bit and 64-bit.

Devart ODBC Driver for SQLite - Devart ODBC Driver for SQLite provides high-performance and feature-rich connectivity solution for ODBC-based applications to access SQLite databases from Windows, Linux, MacOS, both 32-bit and 64-bit.

DGuitar: a Guitar Pro viewer, player - DGuitar is a Guitar Pro (*.GP4,*.GP3,GTP) viewer and player that works under Linux, MacOs, Solaris, BSD, Windows, or any other operating system with Java Runtime 1.4.X. http://DGuitar.sourceforge.

DotsPlus3D - DotsPlus is a way of integrating tactile captions into 3D CAD models for prototyping, tooling and manufacturing. The project is coded in C++ and supports at least the Alias|Maya plugin API andOpen Inventor (Linux) and Coin3D (Linux/MacOS).

Shareware Connection periodically updates pricing and software information of 'RenameField' from company source 'Jan Simon' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'RenameField' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of RenameField.

New Reviews

Safe In Cloud - It is quite difficult to find any computer users nowadays who do not need to use the web, for any purpose. Whether it is for education or entertainment, the web is your best resource. You also need to use various online services for banking, ...

Zoolz - No serious PC user needs introduction about the need to backup data, both at home and workplace. There was a time when majority of people used external HDD or storage media to backup important data. However, local data backup has its limitations ...

Nuance 4 Dragon Dictate Mac - While Mac users resort to using third party apps for image editing or video editing needs, they are not bothered much about voice dictation software. This has also got to do with the fact that latest versions of OS X including Mountain Lion ...

Serif CraftArtist 2 Professional - There are plenty of image editing tools available for Windows users but the number of scrapbooking apps is not much. However, with Serif CraftArtist Professional you can create sleek looking greeting card, digital albums and scrapbooks without ...

Eset Cyber Security Pro - There was a time Mac users were simply oblivious to the existence of malware and viruses, partially encouraged by Apple’s claim that Mac’s do not fall prey to malicious code. In last few years, that perception has been shattered owing ...

Auslogics BitReplica - With storage capacity and options going up with time, PC users have got numerous options to back up their important data, whether you need to store your music, movie collection or other types of data safely, using the PC’s HDD may not be ...

Focus One Mind - Technology has made life easier for humans beyond doubt but it comes with the downfalls too. The web serves as the source of entertainment, income and resource for several things for most people. However, the internet can also become a source of ...

Sigma Internet Monitoring - There is no denying the huge importance of internet in human life. Without the web, it has literally become imposable to carry on a lot of personal and professional activities, irrespective of your age, gender and qualification. While the web ...

Uniblue SpeedUpMyPC 2013 - Even if you use an expensive desktop or laptop with beefy hardware and have the latest version of Windows installed, it is not unusual to find your system running sluggishly after prolonged usage. This has got more to do with inherent working ...

Cubase Artist - Professional audio editors and artists dealing in MIDI composition have a soft corner for Steinberg Cubase Artist. Its origin can be traced back to Atari ST and in later years, the app made way into PCs and Macs. The latest version is a flexible ...




New Downloads

EarCatch Ringtone Express

EarCatch Ringtone Express is
an advanced solution for
making ringtones from any
sound. It is very easy to
customize ...

MacX iPhone DVD Ripper

MacX iPhone DVD Ripper
provides perfect solution to
rip DVDs to iPhone 6/6 Plus,
iPhone 5S/5C/5, iPhone
4S/4/3GS, iPod, ...

Auction Management System

Our professional online
auction software package
that\'s completely
customizable to suit your
business needs. Our ...

Gauss quadrature nodes and
weights.

A demonstration of the fast
algorithm built in to the
chebfun

Save and load data as
multi-frame TIFF format

You can easily save and load a
variety types of data as
multi-frame TIFF format by
using this.

Admin-Colour

This plugin is for colour
coding the admin menu

Double Fourier Series
Surface Plotting for
Mathematics

These MATLAB functions plot
and display number of terms
and oscillation smoothing of a
double Fourier series

Sequence Generator

Sequence Generator v0.91
allows an easy creation of
trial lists factorial designs
including various constraints
as run ...

efficient implementation of
K-means++: kmeans algorithm
with smart seeding

This is an implementation of
the paper

Perfect Number Generator

It calculates perfect even #'s
with 2^(p-1)*(2^p - 1) where p
and (2^p - 1) %are prime. A
subsequent run yields a faster
...

Gaussian Filter,
Determination of integer
parameters

Within a sigma range separable
filters with integer
parameters are sought

change_position_select_obj

reads files and an offset to
the coordinates of the
selected objects