Home > By category > Scripts >Development Tools > mxGetPropertyPtr C-mex function



mxGetPropertyPtr C-mex function

  • Downloads: 
  • Views: 
  • Rating:

When The Mathworks™ introduced MATLAB™ version R2008a they included a new object oriented format called classdef. This addition greatly expanded the object oriented capabilities of MATLAB™ at the m-file level. There were also two new mex API functions introduced at that same time: mxGetProperty and mxSetProperty. Unfortunately, both of these functions work with copies of the properties and not the actual properties themselves. So whereas the old-style class variables can easily and efficiently be accessed with the mex API functions mxGetField, mxGetFieldByNumber, mxSetField, and mxSetFieldByNumber since they use pointers to the original properties, there were no equivalent mex API functions provided for the newer classdef classes. This presents a problem for the mex programmer, particularly if the properties in question are large. Using mxGetProperty will significantly slow the routine down and also risk using up valuable heap memory. The same is true for mxSetProperty.

The new mxGetPropertyPtr C-mex function provided in this package solves half of the problem. It returns a pointer to the original property rather than a pointer to a copy of the property. Thus the property can be accessed efficiently inside a mex routine. The other half of the problem, providing an efficient replacement for mxSetProperty, is in work and will likely be included with the next release of this package.

Free download from Shareware Connection - When The Mathworks™ introduced MATLAB™ version R2008a they included a new object oriented format called classdef

Publisher: James Tursa | License: Shareware
Version: 1.0 | Size: 41 KB | Platform: Matlab, Scripts
Released Date: 26-06-2013 | Rating: 0 | Title: mxGetPropertyPtr C-mex function

Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/30672/1/mxGetPropertyPtr_20110307.zip

More downloads from mxGetPropertyPtr C-mex function publisher James Tursa:

Moon Position - moonpos calculates the moon position using the method in the book

typecast and typecastx C-mex functions - TYPECAST and TYPECASTX are mex functions intended to mimic the MATLAB intrinsic typecast function with extensions.

fulltosparse (Fortran version) - This example demonstrates how to populate a sparse matrix

engCallMATLAB (Fortran version) - Have you ever wanted to call the engCallMATLAB function, only to realize that it isn't available? Well, now it is! This Fortran routine mimics the functionality of the mexCallMATLAB function, but for engine applications.

Fortran Logical mex functions - mxLogicalFunctions.for provides a suite of functions to support conversion of Fortran logical variables to/from MATLAB style mxArray variables in mex routines or engine applications.

mxGetPropertyPtr C-mex function keywords:
mxGetPropertyPtr C-mex function related downloads:

The Cardiac Processor VI1 Matlab In C Mex Version - It is the version in C Mex frame of my cardiac processor VI1 for cardiac cells oscillations.

typecast and typecastx C-mex functions - TYPECAST and TYPECASTX are mex functions intended to mimic the MATLAB intrinsic typecast function with extensions.

wat11 - C-mex files for MATLAB encounter the following problem when compiling them with WATCOM 11.0: All access-functions to files (fprintf, fscanf) cannot handle double variables, only integer and strings are read or written correctly

Fast Deconvolution - This function deconvolves one extremely large vector out of another extremely large vector very quickly

Fast Convolution - This function convolves two very large vectors very quickly.

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

New Reviews

PictBear - Nowadays, a majority of PC users resort to digital image editing once in a while. It may be required for retouching image captured in smart phones or for creating an album in Facebook. For some people, tinkering with digital images is a pastime ...

Trend Micro HouseCall - With time, PC users find it increasingly difficult to keep their systems free of malware and rogue apps, despite using latest and feature packed security software. This is mostly owing to the evolving nature of malware and newer types of ...

Sony Movie Studio 13 Platinum - Sony enjoys a prime position in consumer level media software development and its Movie Studio has a large fan following. However, in recent years competition from Adobe and Corel has caught up. The recent overhaul of Sony’s video editor ...

Avira Ultimate Protection Suite - With time the importance of PC security has gone up by leaps and bounds. Earlier, people used to rely on standalone antivirus software. However, security conscious users prefer having a more robust form of protection. They opt for Internet ...

Poser - The concept of 3D animation and modeling may seem amazing to the viewers but those who are into the industry know it is no cakewalk. Majority of 3D animation and modeling software known for some of the amazing animations and CGI work in films ...

RawTherapee - There are so many image editors out there but when it comes to powerful and versatile RAW file editors, the choices are somewhat limited. With Adobe switching to Cloud-based subscriptions for most of its apps, semiprofessional users including ...

Avid Media Composer - When it comes to professional level video editing, there are plenty of tools available for computer users nowadays. While a lot of studio professionals swear by apps like Adobe’s powerhouse software Premiere Pro and Mac users stick to Final ...

KeePass Password Safe - Using password becomes mandatory for performing various online operations, at both home and workplace. For accessing email accounts, shopping online, making banking transactions and similar tasks it is necessary to use user ids and passwords ...

McAfee SiteAdvisor Live - Nowadays, PC users look for more than a standalone antivirus software to boost their PC protection level. If you feel concerned about online safety and need a more secure browsing experience, it is prudent that you use an add-on security tool ...

SyncMate - Just like windows users, Macintosh users also need to sync their data with myriads of other devices and other Macs. It is possible to use Apple’s much touted iCloud to sync a Mac with other iOS based devices but that may not fit ...




New Downloads

PHP Review Script

Every corporate website
providing products and/or
services online needs a proper
customer feedback. PHP Review
Script is ...

Letter Extraction from
Image

This program makes an easy
understanding of Image
Processing on MATLAB.

Optical Sensor Image
Generation Demo EDIT

Function target_image_gen use
Vx, Vy and Vz to create a
movie simulation of a targets
aproach.

2D FDTD for ring resonator
structure

2D FDTD for observing coupling
of light in ring resonator
structure

New Block Library Simulink
called The Phase Filter

It is a new block simulink
signal library called the
Phase Filter.The transfert
function is
F(p)=(1+T1p)/(1+T2p)

WP Dessert Menu

This little plugin has one
simple purpose, to put a
WordPress Nav Menu in your
Admin Bar.

Flood Fill

The flood fill will alter all
values of 0 to one flood
filling from a start point
(xc,yc)

fd23

This m-file is used in
experiments involving several
factors where it is necessary
to investigate the joint
effects (main ...

Focus Measure

This function measures the
relative degree of focus of an
image.

Aggregation Block

This module provides a block
to display a list of titles of
recent articles from a feed
created by the Aggregation
module

ilu

This is a mex file which
conects Saad's ILU to MATLAB

Pareto Front Using Fitness
Sharing

This code finds and plots the
Pareto front of the following
problem