Answered

Creating an arbitrary number of displaced Gaussian

Hey Jason, <https://www.mathworks.com/help/matlab/ref/bsxfun.html BSXFUN> is your friend (and your enemy w.r.t. readability): ...

Creating an arbitrary number of displaced Gaussian

Hey Jason, <https://www.mathworks.com/help/matlab/ref/bsxfun.html BSXFUN> is your friend (and your enemy w.r.t. readability): ...

6 years ago | 0

Answered

interp1 - rant

If its only about the 1x1xN array not working, simply use <https://www.mathworks.com/help/matlab/ref/squeeze.html squeeze>. E.g....

interp1 - rant

If its only about the 1x1xN array not working, simply use <https://www.mathworks.com/help/matlab/ref/squeeze.html squeeze>. E.g....

6 years ago | 1

Answered

How can I label my EEG-data plotting in gui?

Is your data all in the same |axes| or in separate |subplot| s? In the first case use the |text| function and set its |'Unit'| p...

How can I label my EEG-data plotting in gui?

Is your data all in the same |axes| or in separate |subplot| s? In the first case use the |text| function and set its |'Unit'| p...

6 years ago | 0

Answered

Counting Plotted Coordinates in image

If you have your 2xN dot matrix |dots| which presumably contain the x (row 1) and y (row 2) coordinates, then N is the number of...

Counting Plotted Coordinates in image

If you have your 2xN dot matrix |dots| which presumably contain the x (row 1) and y (row 2) coordinates, then N is the number of...

6 years ago | 0

Submitted

bridgeIdGaps(OnOffIds, MaxGapSize, varargin)

Merge consecutive segments within a given gap.

6 years ago | 1 download |

Answered

No dublicates in for loop.

Hey Kian, I am not sure if I really understood your problem, but maybe the following solution helps: %Assuming NumeriskD...

No dublicates in for loop.

Hey Kian, I am not sure if I really understood your problem, but maybe the following solution helps: %Assuming NumeriskD...

6 years ago | 0

| accepted

Answered

I have a datafile contains data sets (size 200* 15) .how can I apply on all the data a lowpass butterworth filter of 2-order with cutoff fre 10 HZ

Hey Rahul, use <http://www.mathworks.com/help/matlab/ref/filter.html FILTER> with the coefficients created with <http://www.m...

I have a datafile contains data sets (size 200* 15) .how can I apply on all the data a lowpass butterworth filter of 2-order with cutoff fre 10 HZ

Hey Rahul, use <http://www.mathworks.com/help/matlab/ref/filter.html FILTER> with the coefficients created with <http://www.m...

6 years ago | 0

| accepted

Answered

How to get Ones along the diagonal

The built-in function <http://www.mathworks.com/help/matlab/ref/diag.html DIAG> is your friend: X = diag(ones(5,1)) Gree...

How to get Ones along the diagonal

The built-in function <http://www.mathworks.com/help/matlab/ref/diag.html DIAG> is your friend: X = diag(ones(5,1)) Gree...

6 years ago | 2

Submitted

getOnOffIds(IsData)

Computes the start/end ids of 'true'-events in a logical vector.

6 years ago | 1 download |

Answered

How reduce/resize legend dimensions and marker size in R2016a

Hey Oladunjoye! This is a problem in Matlab for quite some time. Customizing legends is quite cumbersome as Matlab tries to m...

How reduce/resize legend dimensions and marker size in R2016a

Hey Oladunjoye! This is a problem in Matlab for quite some time. Customizing legends is quite cumbersome as Matlab tries to m...

6 years ago | 1

| accepted

Submitted

Find the id of the closest value in an array to a given value

Returns the index of the closest value in an array X to given values Y

6 years ago | 1 download |

Submitted

Compute arbitrary function in sliding window

This function quickly computes an arbitrary function on a sliding window.

6 years ago | 3 downloads |

Question

Designing a moving average filter using DESIGNFILT

Dear ML-community, I am trying to implement a moving average filter using the DESIGNFILT method to get an according DIGITALFI...

7 years ago | 1 answer | 0

Question

Writing video in a parfor fails

Dear all, I try to add a circle to each frame of a video. I do this in a PARFOR loop. The only problem is, that the loop fail...

7 years ago | 2 answers | 0

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

10 years ago

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

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

10 years ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

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

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

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

10 years ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

10 years ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

10 years ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

10 years ago