Answered
Representing a number as a matrix
For a non-negative integral value: >> x = 146 x = 146 >> num2str(x) - '0' ans = 1 4 ...

15 years ago | 1

| accepted

Answered
How do i select a variable for global use from an array?
A = D.A; But why not just use D.A?

15 years ago | 1

Submitted


MTIMESX - Fast Matrix Multiply with Multi-Dimensional Support
Beats MATLAB 300% - 400% in some cases ... really!

15 years ago | 19471 downloads |

4.6 / 5
Thumbnail

Answered
Converting a date string to day of year
Here is an outline of code to get Day Of Year: >> d = '12/25/1957' d = 12/25/1957 >> v = datevec(d) ...

15 years ago | 3

Answered
What Timezone Abbreviation does Java use for your location?
>> java.util.Date() % The date string display ans = Mon Feb 21 15:59:56 PST 2011 >> -ans.getTimezoneOffset()/60 ...

15 years ago | 0

Question


What Timezone Abbreviation does Java use for your location?
I am writing timezone sensitive versions of several MATLAB date related functions (datenum, datestr, datevec, etc) for eventual ...

15 years ago | 5 answers | 1

5

answers

Answered
What can the implicit type of mxGetPr return argument be?
mxGetPr returns a (double *) type and is typically only used for double class variables, although most compilers will let you ge...

16 years ago | 2

| accepted

Answered
Compiling MEX files with Visual C++ 2010 with matlab2009a
One way is to do the following: 1) Start with files that already work for a previous version, such as 2008, and then modify t...

16 years ago | 1

| accepted

Answered
MATLAB Engine : create and manipulate matrix "view" to memory owned by calling process
That will not work. In the first place your cellArray mxArray variable does not exist in the workspace, it exists in your progra...

16 years ago | 0

Answered
Why does EMLMEX generate a slow mex file?
Is your m-file code small enough to post? I would have expected that the emlmex routine would be calling the same functions that...

16 years ago | 0

Answered
C engine: rebuild required when MATLAB upgraded?
One problem with Engine applications is that they will start the MATLAB version that most recently executed a matlab/regserver, ...

16 years ago | 1

| accepted

Answered
How to create a 2x2 matrix out of 4 matrices?
You might also look at Bruno Luong's FEX submission for this particular problem: <http://www.mathworks.com/matlabcentral/file...

16 years ago | 0

Answered
Complex matrix inversion using LAPACK in MEX
No. That will not work. In the first place, after the loop converting the input arrays to Fortran format the zp pointer is point...

16 years ago | 0

Answered
Matrix Indexing
As an exercise in speed I wrote a mex routine to do this. It is faster then the previously posted m-code, but not by a huge amou...

16 years ago | 0

Answered
Generate random points inside a circle
FYI, if you wish to extend methods to higher dimensions, the randn methods are the way to go. Rejection methods in higher dimens...

16 years ago | 0

Submitted


mpower2 - A faster matrix power function.
mpower2 evaluates matrix to an integer power faster than the MATLAB built-in function mpower.

17 years ago | 1340 downloads |

4.0 / 5
Thumbnail

Submitted


polyvalm2 - A faster matrix polynomial evaluator
polyvalm2 evaluates a polynomial with a matrix argument faster than the MATLAB function polyvalm.

17 years ago | 704 downloads |

5.0 / 5
Thumbnail

Submitted


num2vpi - Converts input exactly into vpi
Converts double inputs larger than 2^53-1, or char inputs with exponents, exactly into vpi.

17 years ago | 1366 downloads |

5.0 / 5
Thumbnail

Submitted


Fortran mex routine mxGetClassName
A drop-in replacement for the TMW Fortran API function mxGetClassName routine that does not work.

17 years ago | 864 downloads |

0.0 / 5
Thumbnail

Submitted


swapbytes C-mex function
swapbytes(X1,X2,...) reverses byte ordering of each element, little-endian values to/from big-endian

17 years ago | 1544 downloads |

5.0 / 5
Thumbnail

Submitted


Moon Position
moonpos calculates moon position accurate to 10 arcsec. Based on Astronomical Algorithms, Meeus

17 years ago | 3135 downloads |

5.0 / 5
Thumbnail

Submitted


Count "on" "off" or calculate simple "parity" bits of input
Three functions to calculate the number of "on", "off", or simple "parity" bits of input

18 years ago | 1223 downloads |

1.0 / 5
Thumbnail

Submitted


Fortran mex: mxCopyCharacterToPtr and mxCopyPtrToCharacter
Drop in replacements for the Mathworks supplied functions of the same names that do not work.

18 years ago | 1057 downloads |

0.0 / 5
Thumbnail

Submitted


Fortran mxCreateLogicalSparseMatrix
The Fortran version of the mxCreateSparseLogicalMatrix function for mex and engine apps

18 years ago | 968 downloads |

0.0 / 5
Thumbnail

Submitted


bwmorph c-mex example
This file is the c-mex equivalent of the example given in the bwmorph.m file comments.

18 years ago | 1440 downloads |

0.0 / 5
Thumbnail

Submitted


fulltosparse (Fortran version)
This is a Fortran version of The Mathworks supplied fulltosparse.c, with realloc capability.

18 years ago | 990 downloads |

0.0 / 5

Submitted


bsxarg
bsxarg returns the physically expanded arrays associated with bsxfun

19 years ago | 1307 downloads |

0.0 / 5
Thumbnail

Submitted


bsxfun
bsxfun is a functional substitute for MATLAB intrinsic of the same name

19 years ago | 5650 downloads |

3.5 / 5
Thumbnail

Submitted


reshape0, reshaping with padding or truncating
A c-mex routine for reshaping with padding or truncating

19 years ago | 1265 downloads |

4.0 / 5
Thumbnail

Submitted


Fortran Logical mex functions
Fortran mex routines for converting logicals to/from MATLAB mxArray variables

19 years ago | 1232 downloads |

5.0 / 5

Load more