Community Profile

Contact

Top 5% contributor

I assume that you are talking about windowing functions for filtering. I believe that it is so that you don't alter the analysed...

accepted

0

Answered 4 years ago

i is an imaginary number by default causing your error. Wrap your code in a for loop for ii=1:length(y) ...

To get the non-zero elements a(a~=0) Be careful with the comparison of floats/doubles (some zeros may just be very ver...

Should the lines A = set(handles.FirstPopup,'value'); not read A = get(handles.FirstPopup,'value');

1

Sorry misread what you want. Try making the callback function a separate function in its own m-script and then ensure that you p...

Pass the handle to gui A into the init of gui B and then check the status of A in B. e.g. h = guiA; guiB(h); in the gui...

Cheers for the response, however I have tried this with contour(-2:.2:2,-2:.2:2,Z',[0,0],'LineWidth',5,'Color','r'), and the s...

2154 views

Responded 5 years ago

I have found an issue with the Matlab contour function, the following code demonstrates the issue. [X,Y] = meshgrid(-2:.2:2,-2:...

Posted 5 years ago

This problem is a poll (and a little bit of "white hat hacktivism" as well) regarding Cody users sentiment about the use of rege...

Solve this!

2 years ago

Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

3 years ago

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

4 years ago

Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

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

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

Check if sorted. Example: Input x = [1 2 0] Output y is 0

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

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

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

Load more