Respondida
how to apply FIR filter on an image?
doc hilbert

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

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

más de 9 años hace | 2

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 1

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 1

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

| aceptada

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

más de 9 años hace | 0

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

más de 9 años hace | 0

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

más de 9 años hace | 0

| aceptada

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Resuelto


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

más de 9 años hace

Cargar más