Answered
What is missing from MATLAB?
A function to check if a string clashes with an official MATLAB function. Something like Jan's UniqueFuncNames, but with support...

14 years ago | 6

Answered
Real Time Audio
This question has been asked and answered a number of times. <http://www.mathworks.com/matlabcentral/answers/8610-usb-sound-c...

14 years ago | 0

Answered
Faster way for all possible arrangements
I think the fullfact function from the stats toolbox gets you close. x = fullfact([50,50,50,50]); Although you seem to b...

14 years ago | 0

Answered
Is there a way to 'fold up' sections of code - like when you close up a for loop
Under preferences you can enable code folding for blocks. Blocks are defined in MATLAB as sections starting with %% (I am not su...

14 years ago | 30

| accepted

Answered
Function (File) Name Collision Warning
I don't think you can do it robustly. Crazy things like creating a file on the fly will cause obvious problems. Less obvious pro...

14 years ago | 0

Answered
Sequence within a sequence
n = 5; m = 3; reshape(repmat(1:n, m, 1), n*m, 1)

14 years ago | 1

Answered
??? Reference to non-existent field 'matlab'.
Have you tried deleting/renaming your preferences directory?

14 years ago | 0

Answered
Executing two callbacks concurrently
This is a perfect situation for a timer. You can set the TasksToExecute property of the timer to 31 (the number of times you loo...

14 years ago | 0

Answered
Moving Average
Typically people use doc conv to do moving averages

14 years ago | 0

Answered
can I disable entire sections of code temporarily
You can enclose code in an if block if false ... end or even better (since you can include invalid syntax) woul...

14 years ago | 8

Answered
Figures into subplots
Copying into a subplot would be difficult. Technically subplots are just an axis, but figures can have children that cannot be p...

14 years ago | 0

| accepted

Answered
Find easy patterns in a logic vector
It doesn't handle the edges perfectly, but you might want to start with diff(find(diff(R))) The diff( R ) is a logic vec...

14 years ago | 1

| accepted

Answered
Pre-allocating a function since initialization is slow
What you are seeing is the reason that people suggest that you do not use clear all As long as you do not clear the cumt...

14 years ago | 1

Answered
Parellel computing toolbox speedup
Not all problems can be sped up with parallel processing on a single computer. MATLAB automatically utilizes all cores for a num...

14 years ago | 0

Answered
program timer
The timer function is exactly what you want. If it seems too complicated, start at the beginning of the MATLAB documentation and...

14 years ago | 1

| accepted

Answered
Matab Spectrogram Colour Axis
It is probably not a color range issue. Rather, it sounds like your audio signal has a "pink" (1/f) spectrum where there is more...

14 years ago | 0

Answered
Is "matlab" or "matlab code" a useful tag?
I could see the "matlab" tag being useful when you only want MATLAB solutions and not ones that require you to do something at t...

14 years ago | 3

Answered
Help using randn and pskmod
You realize that randn(M,1,m) is not going to produce integers in the range [0, m-1]? Maybe you want doc randi

14 years ago | 0

Answered
saving variables in a single .mat file
In a comment to Jan you say you have 4 GB of RAM. Loading 9+ GB of data is going to bring your computer to a screeching halt. ...

14 years ago | 0

Answered
Image analysis does not work
_Undefined function or method 'nrm' for input arguments of type 'double'._ The program is trying to call a function called nr...

14 years ago | 2

| accepted

Answered
Computational problem!!!
A stab here ... There is a difference between x^3 and x.^3, just like there is a difference between x.*y and x*y.

14 years ago | 0

| accepted

Answered
Searching a solution for spell check of message strings in m-files
While I don't think it is a good solution, you do not need to use the MATLAB editor for all your editing. Emacs can integrate wi...

14 years ago | 0

Answered
About the minimum width of GUI
I think this has more to do with your window manager (something hidden from you in Microsoft Windows). On my Linux box (KDE/KWin...

14 years ago | 0

| accepted

Answered
if/elseif script problem
I would suggest you look into doc switch This might be better than lots of if/elseif/elseif... You should also look a...

14 years ago | 0

| accepted

Answered
Is it possible to execute scripts, that don't end in .m ?
No, you cannot do this. You could create a link (I am not sure if symbolic or hard would be the way to go here). If it runs in M...

14 years ago | 0

| accepted

Answered
try to manage a dynamic list of classinstances
The call man.AddNode(1,2) is converted behind the scenes to AddNode(man, 1, 2) which has three arguments, but A...

14 years ago | 0

| accepted

Answered
minimum of two functions
At this point I don't think you have a MATLAB question ... The possible boundary edges are when f1-f2 is zero (you can find ...

14 years ago | 0

| accepted

Answered
minimum of two functions
What about sign(f1-f2)

14 years ago | 0

Answered
counting the values and variables
What about a nice loop: S=['F' 'D' 'C' 'D' 'C';'C' 'C' 'F' 'D' 'F']; x = sort(unique(S)); fprintf('%c\t', x') ...

14 years ago | 0

| accepted

Answered
eval is giving wrong results
I don't really understand your question and we cannot run your code ... It looks like: plot(genvarname(sprintf('MPDF_%d%...

14 years ago | 0

| accepted

Load more