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

casi 15 años hace | 1

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 3

| aceptada

Pregunta


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

casi 15 años hace | 7 respuestas | 3

7

respuestas

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 1

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 1

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 1

| aceptada

Pregunta


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

casi 15 años hace | 5 respuestas | 4

5

respuestas

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 3

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 3

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

casi 15 años hace | 5

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

casi 15 años hace | 2

| aceptada

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

casi 15 años hace | 1

Respondida
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}];

casi 15 años hace | 1

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

casi 15 años hace | 0

Cargar más