Answered
Get the "handle number" of a standard handle class
You cannot do this directly. I don't understand why you would want to. Why not just pass the object around? MATLAB is pretty sma...

14 years ago | 0

Answered
Issues with sound and soundsc (matlab R2011a, Lion)
This is surprising to me. I would contact TMW directly. While MATLAB and sound is sometimes flaky, it usually doesn't crash like...

14 years ago | 0

Answered
Read wave file
Based on the error you provided, I am guessing something else is going on. The error never refers to wavread. Further, I don't s...

14 years ago | 0

Answered
FFT vs. Fourier transform
When dealing with Fourier analysis, you need to be careful with terminology. The fast Fourier transform (FFT) is an efficient im...

14 years ago | 0

Answered
Create superclass objects in a for loop
Maybe I am missing something here, but doesn't it make more sense for the AlliedStates constructor to handle an array input.

14 years ago | 0

Answered
How to avoid writing a script function ?
Maybe another person chiming in will convince you this is a bad idea. That said, if I had to go down this road I would probably ...

14 years ago | 0

| accepted

Answered
property access of objects arrays
A potentially related question: <http://www.mathworks.com/matlabcentral/answers/12116-cell-array-expansion>

14 years ago | 1

Answered
Timer Interrupt
Where in the documentation do you see that it has millisecond precision? timer doc Clearly says: "The timer object is su...

14 years ago | 0

Answered
Easy designated/concurrent license test
See: <http://www.mathworks.com/matlabcentral/answers/20681-how-to-determine-if-license-is-concurrent>

14 years ago | 0

Answered
Multiple sound inputs in Matlab
MATLAB can handle several sound inputs. On Windows the Data Acquisition Toolbox has some useful features. I tend to recommend so...

14 years ago | 0

Answered
audioplayer
This is very similar to your other question. Are you saving the audioplayer object someplace?

14 years ago | 0

Answered
Sound in GUI
You have not provided much information. It seems like your function works with soundsc but not with audioplayer. I am guessing y...

14 years ago | 0

Answered
Frequency doesn't sound right
The function sound uses a sample rate of 8192 unless you give it something else. My guess is you want sound(y, fs); You ...

14 years ago | 1

| accepted

Answered
How to generate the figure of subplot with consistent size?
Before running your code, right when you start MATLAB, or added to your startup.m x = get(0, 'DefaultFigurePosition'); s...

14 years ago | 0

Answered
more efficient way to use strtok / selecting parts of a string
If the format is as rigid as your example ... Given a cell array x = {[]; 'ABC/DEF QTR/3/99 (Thousands)'; 'ABC/DEF QTR/6...

14 years ago | 0

| accepted

Answered
problem to run system(''.exe) on Mac
It is extremely unlikely that any file ending in .exe will run on anything OS other than Microsoft Windows. You need to find the...

14 years ago | 0

| accepted

Answered
Good programming practice...
It is only fair that if I plug Doug's blog, I should plug Loren's blog also: <http://blogs.mathworks.com/loren/2012/01/13/bes...

14 years ago | 1

Answered
Measure user response time on hitting a key
Following on from Walter's answer. <http://www.mathworks.com/matlabcentral/fileexchange/7465-getkey> Uses a graphics windo...

14 years ago | 0

Answered
Noice Cancellation in java
Noise cancellation is complicated. You might want to start here: <http://blogs.mathworks.com/loren/2010/06/30/vuvuzela-denois...

14 years ago | 0

Answered
Pause between execution of soundsc
Could be lots of reasons, but the key thing to remember is that you shouldn't depend on sound/soundsc/audioplayer to start witho...

14 years ago | 0

Answered
Name Conflict Warning
I would look at your path path as well as your matlab root matlabroot Have you added the directories twice?

14 years ago | 0

| accepted

Answered
Event Handling
Now I got it. The source of the event is coming from a Java object. Yet another way around the single threaded MATLAB system. ...

14 years ago | 0

Answered
Event Handling
If you are not using timer objects, then your code will only be interrupted at well defined times, like when drawnow is called. ...

14 years ago | 1

Answered
Can I put the filenames in a directory in a matlab vector?
What about just doing it as a system call. system('ls . > filename')

14 years ago | 0

Answered
Str to Cell (trivial ?)
What about str1 = {'aa1','bb1','cc1'}; str2 = {'aa2','bb2','cc2'}; dataCell = [str1; str2];

14 years ago | 0

Answered
list handeling
listA = struct('name', {'a', 'b', 'x_SF_y', 'c', 'd', 'a_SF_b'}); listA = listA(cellfun(@isempty, strfind({listA.name}, '_S...

14 years ago | 0

Answered
Create new workspace
This is what functions do. Pass what you need to a function, and then it is a protected workspace.

14 years ago | 0

Answered
Evaluate a function with "evalin"
This is one of the reasons not to use eval, it makes debugging difficult. I would guess that the price2T_ss function is trying t...

14 years ago | 2

Answered
any suggestions to make this code faster
You should preallocate array to the correct size before the loop. It looks like you could also use a parfor for the first loop. ...

14 years ago | 0

Answered
File names
What about using '?' instead of '*', and why do you have '****', are you sure you don't want that to be ????

14 years ago | 0

| accepted

Load more