Answered
quit doesn't close the program - process still running in task manager
I am not sure what happens with MATLAB and rmdir if it fails to remove the directory (for example because of file permissions) i...

14 years ago | 1

Answered
is this code correct?
you might want to try type magic TMW do it in 4 lines.

14 years ago | 0

Answered
Matlab matched filtering help
Depending on how noisy your data is you might just be able to use a simple threshold ... time_1(amp_1 > threshold) where...

14 years ago | 0

Answered
sort a structure
something like: s = struct('id_number', mat2cell(1:100, 1, ones(100, 1)), 'length', mat2cell(rand(1, 100), 1, ones(100, 1))...

14 years ago | 3

| accepted

Question


Bad homework problems
What possess teachers to ask students to program something in MATLAB (or any language) and then tell them they cannot use certai...

14 years ago | 7 answers | 3

7

answers

Answered
In Editor, keeping code centered/top of screen
I don't know how to do it in the command window. If you are willing to switch to emacs as your editor (the MATLAB extension seem...

14 years ago | 0

Answered
Regarding Autocorrelation function in an application
There is no way to know apriori what r_xx(930) is going to be. You need to know more about what x is. If x is a sine wave with p...

14 years ago | 0

| accepted

Answered
Trimming structure of Arrays
It looks like all you arrays are the same size. You may want to consider a structure array instead of a structure with lots of a...

14 years ago | 0

Answered
How to edit default Audio playback and Recording devices in Matlab
You might want to look into the psychtoolbox ( <http://psychtoolbox.org/HomePage> ) implementation of portaudio. It allows you t...

14 years ago | 0

| accepted

Answered
How to remove XTick labels without removing XGrid lines?
plot(1:10) grid on set(gca, 'XTickLabel', [])

14 years ago | 1

Answered
use comma as decimal seperator
You might want to check out this link: <http://undocumentedmatlab.com/blog/formatting-numbers/>

14 years ago | 0

Answered
Read variable values from m-file
The problem seems to be that the simulation wants its inputs in terms of many separate m-files, but that it is easier to work wi...

14 years ago | 0

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
I wish TMW wasn't as liberal about disclosing "hidden" email addresses. If you to hide your "Community E-mail Address", but then...

14 years ago | 1

Answered
Urgent: Help with plot
A couple of small tweaks will get you there ... Replace T=a+b with T(M)=a+b; T(M) % If you want to see the ne...

14 years ago | 0

| accepted

Answered
Within a function : get complete command-line calling text, a la dbstack()..?
I think you always want the last function on the stack: callerFileName = stDebug(end).file; callerLineNumber = stDebug(e...

14 years ago | 0

Answered
Can I put markers on only some of the points in my plot?
To my knowledge it has not happened yet. The work round seems pretty good to me. figure; XVec = 0:(pi/2):10*pi; YVec = si...

14 years ago | 1

| accepted

Question


Hiding contact information
Has anyone else noticed that TMW is pretty liberal about disclosing "hidden" email addresses. If you select to contact an indivi...

14 years ago | 5 answers | 4

5

answers

Answered
String compare
If you can use A = {'aa'; 'bb'} then strcmp(A, 'aa') works. The cell array for A might be better because it let...

14 years ago | 0

| accepted

Answered
Persistent Variables Not Persistent After Parfor Loops
I am not sure how MATLAB cleans up memory in parfor loops (and hence if you can keep persistent variables). Why not just have...

14 years ago | 0

Answered
Double Click M File Opens New Matlab Session
Lots of people have the same problem: <http://www.mathworks.co.uk/support/solutions/en/data/1-D9IA82/index.html?solution=1-D9...

14 years ago | 0

Answered
How change font size?
I hope you will file this as a bug report with TMW. They really should think about the accessibility of there software. You c...

14 years ago | 0

Answered
Overriding subsref and subsasgn - effect on private properties
Apologies for the long answer (that might not be helpful or even an answer). The answer is so long since I am not sure what I am...

14 years ago | 3

Answered
Class method not working properly
Your class is a value class. If you want the new value of obj, then you need the move method to return obj. You may want your cl...

14 years ago | 1

| accepted

Answered
Need help for explanation of one command
If ADSR is of length N and y is of length M, then at the end, x will have at least length N (and possibly length M) depending on...

14 years ago | 0

Answered
Good programming practice...
Use the functional form of load and save, and almost every other function except maybe help and doc instead of load filename...

14 years ago | 3

Answered
Good programming practice...
I suggest developing a coding "style." Some good places to start are given in the FAQ: <http://matlab.wikia.com/wiki/FAQ#Wher...

14 years ago | 5

Answered
use strings to give commands
how about replacing load('blabla.mat', str); with data = load('blabla.mat', str); Then the variable can be acces...

14 years ago | 2

| accepted

Answered
Is it possible to pass all variables of current workspace into a function without using 'load'
There are a number of different ugly hacks for doing this. A better approach is instead of having 600 variables in your workspac...

14 years ago | 1

Answered
Can you create an interface for different class objects and then store objects of these different classes in an array
Depending on what you want to do a cell array might work .... arr = {classA}; arr = [arr;{ClassB}];

14 years ago | 1

Answered
Manual Implementation of STFT of an audio signal.
I am confused ... Is this roughly what you are trying to do? x = randn(117424,1); % Make some fake data of the correct ...

14 years ago | 0

Load more