Submitted

fix_lines

Improves the style of lines in MATLAB generated eps files

3 months ago | 14 downloads |

Answered

How to display 70 128*128 images in Matlab from a mat file

The imdisp method in the <https://www.mathworks.com/matlabcentral/fileexchange/16233-sc-powerful-image-rendering sc> FEX submiss...

How to display 70 128*128 images in Matlab from a mat file

The imdisp method in the <https://www.mathworks.com/matlabcentral/fileexchange/16233-sc-powerful-image-rendering sc> FEX submiss...

5 months ago | 0

Solved

expand intervals

You're given a row vector of an even number of monotonically increasing integers. Each pair of consecutive integers is the lower...

5 months ago

Answered

Plot 2D images in 3D scatter plot

h = surface(X, Y, Z, im, 'facecolor', 'texturemap', 'edgecolor', 'none'); alpha(h, 0.5); X, Y, and Z are each 2x2 matric...

Plot 2D images in 3D scatter plot

h = surface(X, Y, Z, im, 'facecolor', 'texturemap', 'edgecolor', 'none'); alpha(h, 0.5); X, Y, and Z are each 2x2 matric...

5 months ago | 0

| accepted

Submitted

maximize

Platform independent function to maximize a figure window.

8 months ago | 14 downloads |

Submitted

Image Alignment Demo with several goodies: Lie algebra, auto differentiation...

Demonstration of gradient-based image alignment, including some nice tricks and handy software

9 months ago | 4 downloads |

Submitted

Batch Job

Toolbox to spread batch work over multiple MATLAB instances, even on other PCs

10 months ago | 8 downloads |

Submitted

Example MATLAB class wrapper for a C++ class

An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface.

1 year ago | 54 downloads |

Question

Which standard MATLAB functions do you shadow with your own version, and why?

When you have two functions on your MATLAB path with the same name, the function in the directory higher up the path gets called...

2 years ago | 8 answers | 0

Answered

Which standard MATLAB functions do you shadow with your own version, and why?

I shadow *bsxfun* with my own version, which calls the builtin function bsxfun for all inputs except symbolic ones, for which I ...

Which standard MATLAB functions do you shadow with your own version, and why?

I shadow *bsxfun* with my own version, which calls the builtin function bsxfun for all inputs except symbolic ones, for which I ...

2 years ago | 0

Answered

Which standard MATLAB functions do you shadow with your own version, and why?

I shadow *dot* and *cross* with my own versions, which extend the standard functionality to allow for inputs which have <https:/...

Which standard MATLAB functions do you shadow with your own version, and why?

I shadow *dot* and *cross* with my own versions, which extend the standard functionality to allow for inputs which have <https:/...

2 years ago | 0

Submitted

C++ JSON IO

Mex wrapper to C++ class for fast reading and writing of JSON files

2 years ago | 7 downloads |

Submitted

Tensor matrix multiply

Matrix multiplication over tensor arrays (i.e. arrays of matrices), with matrix transposition.

2 years ago | 6 downloads |

Answered

How do *you* debug mex files on Mac OS

<https://www.mathworks.com/matlabcentral/answers/249023-debugging-c-mex-files-in-xcode-7-on-el-capitan#answer_197054 This> is ho...

How do *you* debug mex files on Mac OS

<https://www.mathworks.com/matlabcentral/answers/249023-debugging-c-mex-files-in-xcode-7-on-el-capitan#answer_197054 This> is ho...

2 years ago | 0

Answered

Debugging C++ mex files in Xcode 7 on El Capitan

I have been able to hit a breakpoint in my mex code, within the Xcode IDE, by doing the following steps: # <https://www.mathw...

Debugging C++ mex files in Xcode 7 on El Capitan

I have been able to hit a breakpoint in my mex code, within the Xcode IDE, by doing the following steps: # <https://www.mathw...

2 years ago | 0

Answered

Debugging C++ mex files in Xcode 7 on El Capitan

I build the mex file as a command line project in Xcode, using the following custom build settings: <</matlabcentral/answers/...

Debugging C++ mex files in Xcode 7 on El Capitan

I build the mex file as a command line project in Xcode, using the following custom build settings: <</matlabcentral/answers/...

2 years ago | 0

Answered

Which MATLAB operations/functions need speeding up?

MATLAB has no documented functions for reading JSON files, and the internal, undocumented method: matlab.internal.webservic...

Which MATLAB operations/functions need speeding up?

MATLAB has no documented functions for reading JSON files, and the internal, undocumented method: matlab.internal.webservic...

2 years ago | 0

Solved

Index one element in each vector of an array along a given dimension

Functions like min and max can return in their second output argument the index of the element in each vector along a particular...

2 years ago

Answered

How to compute the hash of a string using SHA algorithms

The Java-based solution can be found <http://uk.mathworks.com/matlabcentral/answers/45323-how-to-calculate-hash-sum-of-a-string-...

How to compute the hash of a string using SHA algorithms

The Java-based solution can be found <http://uk.mathworks.com/matlabcentral/answers/45323-how-to-calculate-hash-sum-of-a-string-...

3 years ago | 1

Answered

How to calculate hash sum of a string (using java)?

A similar solution: %STRING2HASH Convert a string to a 64 char hex hash string (256 bit hash) % % hash = string2has...

How to calculate hash sum of a string (using java)?

A similar solution: %STRING2HASH Convert a string to a 64 char hex hash string (256 bit hash) % % hash = string2has...

3 years ago | 0

Question

How can I access an API which requires OAuth 2.0 authorization, such as Google APIs

Some REST APIs, such as <https://developers.google.com/analytics/devguides/reporting/core/v3/gdataAuthorization Google Analytics...

3 years ago | 2 answers | 0

Channel

London social meetups

The membership sizes of several London-based social meetup groups.

3 years ago

Answered

Returning and passing void pointers to mex functions

Whilst you are not interfacing to a C++ class, much of a similar discussion on how to reuse a pointer to a C++ class is relevant...

Returning and passing void pointers to mex functions

Whilst you are not interfacing to a C++ class, much of a similar discussion on how to reuse a pointer to a C++ class is relevant...

3 years ago | 1

Answered

How to prevent Matlab from GPU switching on Macbook Pro?

If you don't need the desktop, then you can run the command window only version of MATLAB by calling the following in a terminal...

How to prevent Matlab from GPU switching on Macbook Pro?

If you don't need the desktop, then you can run the command window only version of MATLAB by calling the following in a terminal...

3 years ago | 0

Answered

Which MATLAB operations/functions need speeding up?

Matrix operations involving the transpose of a sparse matrix, especially J' * J and J' * K, where J is a very tall matrix. Const...

Which MATLAB operations/functions need speeding up?

Matrix operations involving the transpose of a sparse matrix, especially J' * J and J' * K, where J is a very tall matrix. Const...

3 years ago | 0

Answered

Are the values in each compressed column of a sparse matrix stored in order?

Since it is possible to write the column data in any order from a mex file, I would say *no*. However, I tried three methods ...

Are the values in each compressed column of a sparse matrix stored in order?

Since it is possible to write the column data in any order from a mex file, I would say *no*. However, I tried three methods ...

3 years ago | 0