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

12 years ago | 2

| accepted

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

12 years ago | 3

| accepted

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

12 years ago | 0

| accepted

Answered
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); ...

12 years ago | 0

| accepted

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

12 years ago | 0

Answered
How can I store a matrix within another matrix?
you can turn the matrix into a cell array.

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 1

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 1

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 1

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

Answered
example for nargin nargout and nargcheck
doc nargin doc nargout doc nargchk the documentation from matlab gives examples.

12 years ago | 0

Answered
How can a create uitable with dynamic columns?
I would check out the function uitable()

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

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

12 years ago | 0

Load more