Rank: 4324 based on 26 downloads (last 30 days) and 2 files submitted
photo

Andrew

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Andrew View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 May 2014 Screenshot Figure from text file (supports HTML tags) This function takes text from a file and creates a figure to display it Author: Andrew html, jlabel, jtable, jscrollpane, swingx, java 10 0
01 May 2014 MxArrayDefinition Creates a C style definition of an mxArray (for use in mex applications) Author: Andrew mxarray, mxarray_tag, mxinternals 16 1
Comments and Ratings by Andrew
Updated File Comments Rating
13 Feb 2011 InplaceArray: a semi-pointer package for Matlab Manipulate (multi-dimensional) arrays in the in-place form Author: Bruno Luong

Hi Bruno. Can I suggest adding the line:

((Internal_mxArray*)(BMAT))->reserved3 = 1; /*give it a reference count*/

Around about line 194 of inplacearray.c. This will tell Matlab not to try to free the memory pointer so:

A = eye(3);
B = inplacecolumn(A, 2);
clear B;

will not cause Matlab to crash (R2009A anyway)
--Cheers, Andrew

Comments and Ratings on Andrew 's Files
Updated File Comment by Comments Rating
30 Oct 2014 MxArrayDefinition Creates a C style definition of an mxArray (for use in mex applications) Author: Andrew Klamer

The generated file states that it does not know how pFieldNames is stored.

On /* Matlab version: R2010b */
/* Computer: PCWIN64 */
this pointer seems to point to a struct like:
struct FieldNames
{
int nrFields;
int dummy; /* value 1 */
char dummy2[8];
char *fieldNamePtr[];
};

with fieldNamePtr pointing to a zero-terminated string.

Contact us