Answered

Is it possible to do multidimensional interpolation on a set of scattered data?

For 2 dimensional data (surface of scattered points), I've found <http://www.mathworks.com/matlabcentral/fileexchange/8998-surfa...

Is it possible to do multidimensional interpolation on a set of scattered data?

For 2 dimensional data (surface of scattered points), I've found <http://www.mathworks.com/matlabcentral/fileexchange/8998-surfa...

7 years ago | 1

Answered

detect square objects in a binary image

I was thinking about this recently, a hough transform could be a very robust way to find squares, if they are not rotated at all...

detect square objects in a binary image

I was thinking about this recently, a hough transform could be a very robust way to find squares, if they are not rotated at all...

7 years ago | 0

Question

Is the new splash screen option in the compiler just for the installer?

Or does it show up each time the exe is launched while the MCR is loading? I'm currently setting up wrapper applications so a s...

7 years ago | 1 answer | 0

Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

7 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

7 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

7 years ago

Solved

Return a list sorted by number of occurrences

Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

7 years ago

Solved

Reverse Run-Length Encoder

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

7 years ago

Solved

Balanced number

Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

7 years ago

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

7 years ago

Answered

How did you learn MATLAB?

I have always dabbled in programming since I was 13, but never really got deep in any one language. As a mechanical engineer no...

How did you learn MATLAB?

I have always dabbled in programming since I was 13, but never really got deep in any one language. As a mechanical engineer no...

7 years ago | 0

Question

Is there a way to restrict the MCR Version used for compiled code?

Is there any way to restrict which version of the MCR can be used to launch compiled code? The project I am working on involves...

7 years ago | 1 answer | 0

Answered

X,Y points of two intersecting lines

http://www.mathworks.com/matlabcentral/answers/70287

X,Y points of two intersecting lines

http://www.mathworks.com/matlabcentral/answers/70287

7 years ago | 0

Answered

How to choose Spectrogram parameter ?

Where you set it to zero, you should be using parentheses and not brackets. not really sure what you were plotting since that s...

How to choose Spectrogram parameter ?

Where you set it to zero, you should be using parentheses and not brackets. not really sure what you were plotting since that s...

7 years ago | 0

| accepted

Answered

Time axis in spectrogram for event relatd data

Here is some lines I've used to set up a spectrogram with more control on how it is created. You should be able to use tStart to...

Time axis in spectrogram for event relatd data

Here is some lines I've used to set up a spectrogram with more control on how it is created. You should be able to use tStart to...

7 years ago | 1

| accepted

Answered

Is it possible to use a section of a colormap?

you can define a colormap using the jet(n) function where n is the number of steps. Based on the min/max of the current window ...

Is it possible to use a section of a colormap?

you can define a colormap using the jet(n) function where n is the number of steps. Based on the min/max of the current window ...

7 years ago | 2

| accepted

Answered

What is the window needed for Triangular puls before FFT ?

oh ok, I missed the pulse aspect of this. a Fourier transform is not the way to go here. I would just do some basic logic to lo...

What is the window needed for Triangular puls before FFT ?

oh ok, I missed the pulse aspect of this. a Fourier transform is not the way to go here. I would just do some basic logic to lo...

7 years ago | 0

Answered

What is the window needed for Triangular puls before FFT ?

a window function is not going to eliminate the other peaks. They are the actual result of the transform since your signal is n...

What is the window needed for Triangular puls before FFT ?

a window function is not going to eliminate the other peaks. They are the actual result of the transform since your signal is n...

7 years ago | 0

Answered

getting the ID of the line which just has been clicked on

I don't use the IP toolbox but I assuming you would be able to use a "line" instead of imline since I don't think imline has cal...

getting the ID of the line which just has been clicked on

I don't use the IP toolbox but I assuming you would be able to use a "line" instead of imline since I don't think imline has cal...

7 years ago | 0

Question

Is using a try/catch around gui_mainfcn a bad idea?

I am working on a fairly large signal processing GUI created with GUIDE. The final product will be a compiled program and one t...

7 years ago | 2 answers | 3

Question

fft(single) is giving inconsistent results

I have found that if I have an array of singles and I want to run it through fft so the transform is performed independently for...

7 years ago | 1 answer | 1

Question

fft(single) is giving inconsistent results

I have found that if I have an array of singles and I want to run it through fft so the transform is performed independently for...

7 years ago | 0 answers | 0

Solved

Create times-tables

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

7 years ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

7 years ago

Solved

The Goldbach Conjecture

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

7 years ago

Solved

Target sorting

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

7 years ago

Solved

Summing digits

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

7 years ago

Solved

Back and Forth Rows

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

7 years ago

Solved

Remove any row in which a NaN appears

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

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

7 years ago