Réponse apportée
Problem using move file
what you're missing is path = 'C:\temps (IT do not delete)\matlabAnswers\dirtest\'; dirData = dir(strcat(path,'*.wav'));...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
Quick method to find duplicates in a matrix?
You can try: [uniqueA i j] = unique(A,'first'); indexToDupes = find(not(ismember(1:numel(A),i))) There may be some para...

environ 12 ans il y a | 3

| A accepté

Réponse apportée
How to take the average of each column of a matrix without including a certain number
What you can do is do a quick substitution. if you know your matrix doesn't have any NaN (Not a number) then substitute the 0's...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
for loop- plot max values by defining x length either side
well you could do something like this in one window t=0:1:700; A = [t' 5.1*sin(t/10)'] [row]=find(A(:,2)>=5.0); ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How to fft and filter some data and do ifft
basically look up the <http://www.mathworks.com/help/matlab/ref/fft.html fft> documentation. They have examples on how to do th...

environ 12 ans il y a | 0

Réponse apportée
How can I store a matrix within another matrix?
you can turn the matrix into a cell array.

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Replace rows of matrix with vector
well here is a thing that you could do to speed it up. function [M] = replace(M,row,replace) [~,ind]=ismember(M,row...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Plot a surface with X Y Z data
you can try to use the interp2() function. I haven't checked your excel file but it may accomplish what you're looking for. by...

environ 12 ans il y a | 0

Réponse apportée
Extracting data from messy text file
dpb's solution is much more elegant but thought i'd put what i did so far. fid = fopen('Data.txt'); nlines = 1; d...

environ 12 ans il y a | 0

Réponse apportée
How to make a List box?
This was covered in the question earlier today <http://www.mathworks.com/matlabcentral/answers/141465-how-do-i-update-a-listb...

environ 12 ans il y a | 0

Réponse apportée
Binary image masking using another binary image
couldn't you just NewImage = Mask1&Mask2? where the only things left are the areas where both masks have the value 1? imagesc...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
GUI position property issue...
as the position parameter starts with what i remember as the lower left corner you cannot just resize the figure to show the top...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Exclude more than one outlier in linear function
you'll need to use the logical comparison OR '|' not AND '&'. as you are doing mdl.Residuals.Raw<-4000000 AND mdl.Residuals.R...

environ 12 ans il y a | 1

Réponse apportée
Substitution Iteration in Matlab
Well there are a few ways to do it. if you lay out the equations substitutions you can get it such that xn = B*x2+A*x1; so if...

environ 12 ans il y a | 0

Réponse apportée
subplots destroys the axis properties
well what you can try is this by moving the setting of the axis properties at the end such that you do not overwrite them. ...

environ 12 ans il y a | 0

Réponse apportée
Classification of a matrix to 0 and 1 matrix
I would first create a matrix Btemp of size max(AgeGroup) by max(ID) by max(SexGroup) full of zeros. then do a loop for each ro...

environ 12 ans il y a | 1

Réponse apportée
How to merge multiple scripts in MATLAB
when you say batch file are you talking about *.bat files? if so then you are not looking for run() command. you'll be wanting...

environ 12 ans il y a | 0

Réponse apportée
Radio Buttons - Where can I find documentation?
<http://www.mathworks.com/help/matlab/creating_guis/add-code-for-components-in-callbacks.html> is a link you can look at. if y...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How can i pair files with almost the same filename in order to create stereo wav files from mono wav files (ideally as a batch)?
since you have already the script to combine you can get the list of items by using something like this list = dir('*.t...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
(HELP) Algorithm that notice the moment that a vector with 2 columns varies
you can use the diff() function on the second column. then use the find() function to see which items are 1 (the 0 to 1 transit...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
how to editing the value of a parameter in the textfile
I created a text file using an Aesop's Fable "The Ant and the Grasshopper" and used the code below to swap out ant with ANT. si...

environ 12 ans il y a | 0

Réponse apportée
example for nargin nargout and nargcheck
doc nargin doc nargout doc nargchk the documentation from matlab gives examples.

environ 12 ans il y a | 0

Réponse apportée
How can a create uitable with dynamic columns?
I would check out the function uitable()

environ 12 ans il y a | 0

Réponse apportée
How can I deploy a listbox from a pushbutton in a GUI?
With what Andrew has above or if this is created using GUIDE, you can create the listbox ahead of time but have its 'Visible' pr...

environ 12 ans il y a | 0

Réponse apportée
Using an If Statement inside a While Loop
what you're missing is x=[]; while a(2) > d run pulsepileup.m if a(2) <= d x = [x b]; end end ...

environ 12 ans il y a | 0

Réponse apportée
Reference to a cleared variable lot. Error in parking (line 13) switch lot
if lot is being defined within the function you don't need to have it as an input. as what ever you're putting in that variable...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Exporting results to excel
there is a function xlswrite() which if you look at the documentation you can specify the row, column, and sheet to write to.

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Using checkboxes in GUI to select which functions run
At the beginning of the pushbutton function have it do a check for which checkboxes are checked off. then use that data to set ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Inner matrix dimensions must agree?
What is happening is that you're performing matrix multiplication in your X = equation. which isn't what you want to do here. ...

environ 12 ans il y a | 0

Réponse apportée
Question about Push Button..
No clue why you would do this but you can create a pushbutton to start with with a callback that creates eval() a creation of pu...

environ 12 ans il y a | 0

Charger plus