Answered
hello,who has done the task of time delay estimation algorithm?can you give me a algorithm?thanks.
If you have the Signal Processing Toolbox: doc xcorr doc alignsignals doc finddelay You'll have to do some reading...

9 years ago | 0

| accepted

Answered
How to specify the RGB color of each line in a waterfall plot?
I'm not really familiar with waterfall plots, but when I run your code there are 15 lines and the CData is also 15x25 so I'm n...

9 years ago | 1

| accepted

Answered
how to remove outliers of a data list
doc prctile if you have the Statistics toolbox. If not it is easy enough to calculate percentiles in your own function. ...

9 years ago | 0

Answered
How 'imread' function works in Matlab?
They aren't 'calculated', they are read in from the file as the name 'imread' and the help suggest.

9 years ago | 1

Answered
log2 function has incorrect help text
There is a 'Was this topic helpful?' question at the bottom of each help page. Click 'No' on that and you get a chance to give ...

9 years ago | 0

| accepted

Answered
How can I test if an input value is an integer?
I use e.g. validateattributes( myInteger, { 'double' }, { 'scalar', 'integer' } ) for validating my input arguments. No...

9 years ago | 1

Answered
How to manage more than one GUI ie main GUI and sub GUI?
doc uiwait doc uiresume These are what you need if you want a 2nd UI to have focus and for the main program that launche...

9 years ago | 2

| accepted

Answered
Why does Matlab not recognize my .txt file as readable using csvread, and how do I fix it?
Unless TestWaveform1Edit is a variable containing the name of your file then of course this will not work. The filename needs t...

9 years ago | 0

| accepted

Answered
Finding the time difference between both my functions
If you put them in a single file (obviously with different names) that starts with a function (name it whatever you want, but it...

9 years ago | 1

| accepted

Answered
Error message: "Undefined function or variable 'loadfile_CreateFcn'"
CreateFcn is something that GUIDE creates automatically for you which I assume you have deleted. Find the button in GUIDE, go t...

9 years ago | 0

Answered
selecting elements from an array
idx = myArray( end, : ) < 0; negLastElementCols = myArray( :, idx ); theRest = myArray( :, ~idx );

9 years ago | 0

| accepted

Answered
Can I run and store results from a for loop individually?
You said your variable was called x0 yet you are trying to use 'x' and do an in-place assignment. Also you try to access x(i-1)...

9 years ago | 0

Answered
From what version of MATLAB are the commands 'vpa' and 'digits' supported?
You need the Symbolic Math Toolbox for these and both have been in since R2006a. You could have found this (as I have just no...

9 years ago | 0

Answered
Finding the means of a large number of individual matrices.
Put your 8*8 images into an 11092*8*8 double array instead of 11092 individual variables, that is insane! Then calculating th...

9 years ago | 1

Answered
undefined fuction 'buttonDownCallBack' for input argument
Well, from what you have shown, the obvious answer is that you haven't defined a function called 'buttonDownCallback' just as th...

9 years ago | 0

Answered
How to i get binary number from image ?
If the image is greyscale and only has values of 0 or 'non-zero' then it is just trivially binaryVals - logical( myImage );...

9 years ago | 0

Answered
gca when using subplots
The subplot call includes a return argument which is the axes handle for that subplot. I would advise to always use this form a...

9 years ago | 0

| accepted

Answered
Why do i get the message" too many output arg"
Surely this is obvious from the error message? doc audioread shows (in Matlab R2016b, at least) that audioread only has ...

9 years ago | 0

Answered
Processing purely imaginary numbers
You can just use imag( myVector ) to get the imaginary part as a standard non-complex double and then do your maths on t...

9 years ago | 0

| accepted

Answered
Organizing data into cells
When you load data from .mat files use the S = load(...) form instead, then you get a struct with your variables as fiel...

9 years ago | 0

| accepted

Answered
How to have my array continuously expanding in a for loop?
You'll have to use a cell array since they will be of different lengths for each row e.g. stuck{n} = M(n,1):0.1:M(n,2); ...

9 years ago | 0

Answered
The expression to the left of the equals sign is not a valid target for an assignment.
What goes wrong is that the three dots are not valid syntax in that context. Or rather they are valid, but don't do what you ...

9 years ago | 0

Answered
Dendrogram with custom colouring
If you use the hLines = dendrogram(...) syntax you will get an array of handles as output. These will be handles to the...

9 years ago | 0

| accepted

Solved


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

9 years ago

Solved


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

9 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

9 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

9 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

9 years ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

9 years ago

Answered
Control figure properties in maineffectsplot
Looks like it is one of those ugly functions that takes it upon itself to create axes and figures, but doesn't return the handle...

9 years ago | 2

| accepted

Load more