Réponse apportée
Which MATLAB operations/functions need speeding up?
It needs a NOP function - a builtin function which does absolutely nothing, but extremely quickly. In compiled languages like...

environ 9 ans il y a | 0

Réponse apportée
Creating movie from Images from a for loop
Produce your images programmatically, rather than by exporting a figure, if you can, as it will be much faster. <http://www.math...

environ 9 ans il y a | 0

| A accepté

Question


Given a named function, how can I call this function, and not the subfunction of the same name?
My function is passed the name of a function (as a string). It just so happens that my function contains a subfunction of that n...

environ 9 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
combining many RGB images into one image
You can display a cell array of images using <http://www.mathworks.com/matlabcentral/fileexchange/22387-imdisp imdisp>. imdi...

environ 9 ans il y a | 0

Réponse apportée
In mex files, where does output to stdout and stderr go?
In a C++ mex file you can output std::cout to the command line, by putting the following code somewhere in your mex file: c...

environ 9 ans il y a | 2

Réponse apportée
scatter plot with 4 different background color
figure; im = rand(2, 2, 3); image([0 1], [0 1], im); hold on a = rand(10,1); b = rand(10,1); scatter(a, b); The...

plus de 9 ans il y a | 0

Réponse apportée
How to optimize this matlab code?
Use <http://www.mathworks.com/matlabcentral/fileexchange/8773 multiprod> as follows: y = reshape(multiprod(multiprod(W_matr...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to determine the MATLAB version when compiling C/C++ mex files
matrix.h contains the following: #define MX_API_VER 0x07040000

plus de 9 ans il y a | 0

Question


How to determine the MATLAB version when compiling C/C++ mex files
MATLAB's C/C++ mex interface changes from time to time, with new releases of MATLAB. Functionality can be added, removed or chan...

plus de 9 ans il y a | 4 réponses | 1

4

réponses

Réponse apportée
Which MATLAB operations/functions need speeding up?
CROSS It is shameful how slow this basic function is. I wrote my own (still in standard MATLAB), and it was 5 times faster. B...

plus de 9 ans il y a | 2

Réponse apportée
What features and improvements do you hope to see in HG2?
Texture mapping of arbitrary meshes. See <http://www.mathworks.com/matlabcentral/answers/183980-how-can-i-texture-map-an-arbitra...

plus de 9 ans il y a | 0

Question


How can I texture map an arbitrary mesh
Surf() and surface() allow me to texture map a regular quadrangular mesh. How can I texture map an irregular triangular mesh, of...

plus de 9 ans il y a | 1 réponse | 0

0

réponse

Question


Fastest way to compute J' * J, where J is sparse
I have a sparse rectangular matrix, J, for which I want to compute: >> H = J' * J; It's a bit slow (transpose is taking ...

plus de 9 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
What features and improvements do you hope to see in HG2?
Some volume rendering capabilities, similar to <http://www.voreen.org/ voreen>.

presque 10 ans il y a | 0

Réponse apportée
What features and improvements do you hope to see in HG2?
Support for all fonts, not a limited subset, in vector graphics export.

presque 10 ans il y a | 1

Réponse apportée
What features and improvements do you hope to see in HG2?
Support for transparency and lighting in vector graphics export.

presque 10 ans il y a | 0

Réponse apportée
What features and improvements do you hope to see in HG2?
MUCH faster rendering. For example, MATLAB renders a million points of different colors incredibly slowly. I reckon some well...

presque 10 ans il y a | 1

Réponse apportée
What features and improvements do you hope to see in HG2?
Anti-aliased graphics.

presque 10 ans il y a | 1

Réponse apportée
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.

presque 10 ans il y a | 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...

presque 10 ans il y a | 18 réponses | 0

18

réponses

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...

environ 10 ans il y a | 2 réponses | 5

2

réponses

Réponse apportée
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...

environ 10 ans il y a | 0

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

environ 10 ans il y a | 0

| A accepté

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

environ 10 ans il y a | 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(...

environ 10 ans il y a | 6 réponses | 4

6

réponses

Réponse apportée
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-...

environ 10 ans il y a | 0

| A accepté

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...

environ 10 ans il y a | 3 réponses | 3

3

réponses

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...

environ 10 ans il y a | 1 réponse | 0

1

réponse

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....

environ 10 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
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...

environ 10 ans il y a | 0

Charger plus