Pregunta


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

más de 14 años hace | 1 respuesta | 0

1

respuesta

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

más de 14 años hace | 2

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

más de 14 años hace | 2

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 2

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 2

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 1

Cargar más