Question


How to best time differences between function implementations
Following on from a comment to this question: http://www.mathworks.co.uk/matlabcentral/answers/35676-why-not-use-square-brackets...

14 years ago | 1 answer | 0

1

answer

Answered
What is missing from MATLAB?
I wish there were better functions for comparing performance across platforms and versions. Something like a stable bench on ste...

14 years ago | 2

Answered
is the Matlab Compiler Free?
If you are using r2012a or above see <http://www.mathworks.co.uk/support/solutions/en/data/1-H1YMBJ/index.html?product=CO&soluti...

14 years ago | 2

Answered
pi in xticklabel but not in other axes or title
You cannot have a different font for the title and tick marks easily. You can overlay 2 axes on top of each other with each havi...

14 years ago | 0

Answered
2006b runs M-file faster than 2011a
There is a bench type function on the FEX: < http://www.mathworks.com/matlabcentral/fileexchange/11984-benchmark> that can be ...

14 years ago | 1

Answered
set(h, 'BackgroundColor', 'Black') - Not working in Linux
If I run uicontrol('Style', 'Edit', 'String', 'Hello', 'BackgroundColor', 'Black', 'ForegroundColor', 'White') I get a b...

14 years ago | 0

Answered
Overwrote "clear" function
There is a good blog post by Loren on this: <http://blogs.mathworks.com/loren/2011/01/27/a-clear-conundrum/>

14 years ago | 0

Answered
The problem of using rng to generate random numbers.
Why not create a new "stream" doc RandStream

14 years ago | 0

Answered
arguments or properties for each class? efficiency?
Loren had a recent post about this on her blog: <http://blogs.mathworks.com/loren/2012/03/26/considering-performance-in-objec...

14 years ago | 1

Answered
How to change an if-condition in a loop by logical indexing to make my code faster?
It is likely that A(i,:) == B(j,:) is not doing what you think it is, especially in the context of an if statement. You ...

14 years ago | 2

| accepted

Answered
Changing the figure font
You can change the default line thickness with: set(0, 'defaultlinelinewidth', 16)

14 years ago | 0

Answered
How to Migrate the Preferences Folder and its Files when updating Matlab?
What about doing a careful diff between the new and old default preference files. This will give you an idea of what has changed...

14 years ago | 0

Answered
What's the best image format to save this matlab figure ?
If you are starting with a 2D matrix of the dot locations, then I would save that matrix and not the figure. If you really want ...

14 years ago | 1

Answered
random number generation within the defined range
You cannot use a Gaussian/normal distribution and expect all the values to fall into a particular range. When you specify a rang...

14 years ago | 1

| accepted

Answered
determining number of axes on a figure
findobj(gcf, 'type', 'axes')

14 years ago | 0

Answered
edit box keypressfcn on every keypress
You could create a static text box and use the figure keypressfcn to update the info in the static text box.

14 years ago | 0

Answered
How to run a script name inputed by the user within a script.
There is the run function doc run

14 years ago | 1

Answered
Hidden memory?
The whos function tells you about the variables in the current workspace. The variables L ad U exist, but not in any workspace t...

14 years ago | 1

Answered
Median filtering for medical images
It does not seem like you are asking about median filtering, but rather how to use MATLAB. There really isn't any thing that can...

14 years ago | 0

Answered
Limiting MATLAB memory usage
I don't think you can do this the way you want. It is not the size of the arrays that cause your system to freeze, but rather th...

14 years ago | 2

Answered
Memory Vs Code
Unfortunately, there is no way to know before making changes. It really depends on what your are doing. MATLAB has a number of o...

14 years ago | 1

Answered
if else loop
Try format long and then look at your v. You can also look at v-1 What you will see is that when MATLAB says v i...

14 years ago | 0

Answered
Timers and procedures which are called when a certain events occur in Matlab
Yes (more or less). The every 30 seconds part can be done with a timer. There might be some jitter (it might be 30.1 seconds or ...

14 years ago | 1

Answered
Using fonts from the fourier LaTeX package in Matlab plots
Hopefully Oliver will chime in, but I think that the way that font replacement works in export_fig does not require you to have ...

14 years ago | 0

Answered
Using mp3write
The warning comes from the standard MATLAB function wavwrite. Given some other questions on Answers, I think wavwrite may have c...

14 years ago | 0

| accepted

Answered
Decrease time in plotting the graph
You are calling plot3 in your loops. You would probably be better off saving all the data and calling plo3 once.

14 years ago | 1

Answered
Recording using a bluetooth module
I think if your OS recognizes the bluetooth device as a soundcard, which it seems to since you can set it as your default device...

14 years ago | 0

Answered
Screen Resolution
You may be better off with get(0, 'MonitorPositions'); Then again, MATLAB has difficulties getting the monitor and scree...

14 years ago | 0

Answered
My MATLAB gets sluggish over time so I have to keep restarting it
No, I do not get this. I will point back to one of the first questions I asked on Answers: < http://www.mathworks.com/matlabce...

14 years ago | 0

Answered
What units do you use?
While I know it is not what you are doing, something that handles unit multiplication would be pretty cool. For example uni...

14 years ago | 1

Load more