Answered
What features and improvements do you hope to see in HG2?
Set a colormap per axes instead of per figure. This would make it much simpler to use multiple colormaps in the same figure.

5 years ago | 2

Question


What features and improvements do you hope to see in HG2?
For a long time now, MATLABers have been calling for an improved graphics pipeline. MathWorks have made it clear in the past few...

5 years ago | 18 answers | 0

18

answers

Question


Equivalent of inputname() for output variables
Say I have a function: function B = myfun(A) disp(inputname(1)) disp(outputname(1)) B = A; If I call it from th...

5 years ago | 1 answer | 3

1

answer

Submitted


imdisp
Display multiple images as a montage of subplots

5 years ago | 12 downloads |

Thumbnail

Submitted


real2rgb & colormaps
Converts intensity matrices into truecolor images.

5 years ago | 9 downloads |

Thumbnail

Submitted


append_pdfs
Append/concatenate multiple PDF files into a single file using Ghostscript.

5 years ago | 40 downloads |

Answered
Is it possible to set watchdogs (memory, exec time) in MATLAB?
I use timers to check certain things, then exit MATLAB if things go wrong. E.g. the following timer function: function kill...

5 years ago | 0

Answered
Determine if using HG2
I've ended up using the undocumented function, graphicsversion(): function tf = ishg2(fig) try tf = ~graphicsvers...

5 years ago | 0

| accepted

Answered
Determine if using HG2
Currently I'm using the version checking approach: function tf = ishg2() try tf = ~verLessThan('matlab', '8.4'); ...

5 years ago | 2

Question


Determine if using HG2
How can I determine if MATLAB or the current figure is using the new graphics pipeline, HG2? I need a function tf = ishg2(...

5 years ago | 6 answers | 4

6

answers

Answered
Forward CUDA printf output to the MATLAB console
There might be a way to redirect output from stdout in a mex file ( <http://www.mathworks.co.uk/matlabcentral/answers/132527-in-...

5 years ago | 0

| accepted

Question


In mex files, where does output to stdout and stderr go?
If I link an external library to a mex file, and this library sends text output to stdout or stderr, what does MATLAB do with th...

5 years ago | 3 answers | 2

3

answers

Question


Forward CUDA printf output to the MATLAB console
I am wrapping CUDA code in a mex file. I have printfs in my CUDA kernel, and I want to see the output from those printfs, ideall...

5 years ago | 1 answer | 0

1

answer

Question


Linking mex files to boost libraries
Boost libraries have awkward names. They depend on all sorts of things: compiler version, library type, boost version, etc. E.g....

5 years ago | 0 answers | 0

0

answers

Answered
how to get RGB color?
You can use the <http://www.mathworks.com/matlabcentral/fileexchange/16233 sc> toolbox, from the File Exchange. In your case, tr...

5 years ago | 0

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

6 years ago

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

6 years ago

Answered
Jacobian of scalar matrix
gradient() computes partial derivatives approximately, using finite differences. It can't compute the exact partial derivatives ...

6 years ago | 0

Answered
Possible to apply filter2 to only values above a limit?
Compute the filtered version for all pixels, and simply replace the pixels above a certain value with their filtered value: ...

6 years ago | 0

| accepted

Answered
Can classes be made unsaveable
No. When a class object is saved, the saveobj method for that class gets called, if it exists. If this method throws an error, i...

6 years ago | 0

| accepted

Question


Can classes be made unsaveable
Is there a way to define a class such that the MATLAB save() function throws an error when it tries to save an instance of that ...

6 years ago | 1 answer | 1

1

answer

Answered
Optimization problem - reducing the time needed to solve
ConstLM.m looks very inefficient to me. I think those loops can be vectorized. Profile your code, and learn about vectorization....

6 years ago | 0

Answered
Interpolation between matrices (image attached)
Your query location, (0,10), is in the center of your grid, so if you want a linear interpolation between the input matrices you...

6 years ago | 0

| accepted

Answered
difference between imadd and imfuse
Yes.

6 years ago | 0

| accepted

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

6 years ago

Solved


Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): As an addit...

6 years ago

Solved


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

6 years ago

Solved


Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

6 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

6 years ago

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

6 years ago

Load more