Specialities: Systems Neuroscience, Machine Learning, Data Science, Statistical Inference, Signal Processing, and Image Processing

Question

Frequency scaling of audio signals

I have an audio signal x[n], whose frequency varies over time. It's FT is X[k]. I want to reconstruct an audio signal (x_hat[n])...

1 year ago | 0 answers | 0

Question

Inverse Fourier Transformation with a function in the exponent

I have a signal x[n] with it's Fourier Transform X[k]. I want a frequency-warped signal (x_warp[n]) by taking the inverse Fourie...

1 year ago | 0 answers | 0

Submitted

Exclude elements from array or matrix

Exclude elements from array, and rows or columns from matrix

4 years ago | 3 downloads |

Submitted

Shuffle a vector for multiple times and concatenate them

Shuffle a vector for multiple times and concatenate them

4 years ago | 0 downloads |

Submitted

Find peaks (maxima and minima) of a function

This function detects the transition points (maxima and minima) in a function like y = f(x)

4 years ago | 7 downloads |

Submitted

A single title on top of a subplot

Use this function to print a title on the top of a group of subplots

4 years ago | 21 downloads |

Submitted

General Linear Regression Model

Generalized form of single and multivariate regression model (linear and non-linear)

4 years ago | 3 downloads |

Question

Shuffling a vector for n times to generate a new vector

A is a vector. I want to shuffle its elements for n times to generate a new vector. For example: A = [3 5 1]; out = [Shu...

4 years ago | 1 answer | 0

Question

Generating a long vector from two other vectors

I got stuck with a (may be) simple problem. Here are two vectors, like: a = [20 13 24 ...]; b = [3 2 4 ...]; How can ...

4 years ago | 2 answers | 0

Answered

Receiving Matrix Dimensions Do Not Agree Error

Instead of Y use Y transpose as Y' in the last line of your code. X=inv(A)*Y' However if you use the following line inst...

Receiving Matrix Dimensions Do Not Agree Error

Instead of Y use Y transpose as Y' in the last line of your code. X=inv(A)*Y' However if you use the following line inst...

4 years ago | 1

| accepted

Answered

How to delete a row from a Financial Time Series?

This works here, delete rows 2 from 4: A = [1 2 3; 4 5 6; 7 8 9; 2 4 6; 1 3 5]; A(2:4,:)=[] When using your code, do ...

How to delete a row from a Financial Time Series?

This works here, delete rows 2 from 4: A = [1 2 3; 4 5 6; 7 8 9; 2 4 6; 1 3 5]; A(2:4,:)=[] When using your code, do ...

4 years ago | 1

Solved

Determine if input is odd

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

4 years ago

Answered

About 3D surface plot

a = ...your 100 x 1 x 51 data; bb = squeeze(a); surf(bb)

About 3D surface plot

a = ...your 100 x 1 x 51 data; bb = squeeze(a); surf(bb)

4 years ago | 2

| accepted

Answered

Bump --> How to change tick label fonts in Matlab figure

Here is an example on how you could use set function to accomplish your job. Delete any pairs of input arguments if not required...

Bump --> How to change tick label fonts in Matlab figure

Here is an example on how you could use set function to accomplish your job. Delete any pairs of input arguments if not required...

4 years ago | 1

| accepted

Answered

how to convert an image into bits???

It is not clear to me exactly what is your goal? Are you trying to convert image pixels into binary bits? If so, you can use dec...

how to convert an image into bits???

It is not clear to me exactly what is your goal? Are you trying to convert image pixels into binary bits? If so, you can use dec...

4 years ago | 1

Answered

Save cubic spline coefficients to use as response in regression

pp = spline(x,y); NewValue = [1 2]; % may be scaler or vector out = ppval(pp,NewValue)

Save cubic spline coefficients to use as response in regression

pp = spline(x,y); NewValue = [1 2]; % may be scaler or vector out = ppval(pp,NewValue)

4 years ago | 1

Answered

Find a value with cell array.

A = your cell... out = A(cell2mat(A(:,1))==7,2)

Find a value with cell array.

A = your cell... out = A(cell2mat(A(:,1))==7,2)

4 years ago | 1

Answered

how to calculate a serie of a function with two variables

% xi eta x =[1 2;... 3 4;... 4 5;... 6 7]; y = sum(x) % only sum of all elements alon...

how to calculate a serie of a function with two variables

% xi eta x =[1 2;... 3 4;... 4 5;... 6 7]; y = sum(x) % only sum of all elements alon...

4 years ago | 1

Answered

How can I fill a matrix column with dta coming from another matrix according to index

A = [(1:9)' ones(9,1)]; B = [1 10; 2 10; 4 10; 7 10]; C = NaN(size(A,1),1); C(B(:,1)) = B(:,2); C = [A C]

How can I fill a matrix column with dta coming from another matrix according to index

A = [(1:9)' ones(9,1)]; B = [1 10; 2 10; 4 10; 7 10]; C = NaN(size(A,1),1); C(B(:,1)) = B(:,2); C = [A C]

5 years ago | 1

Answered

how to find peaks in jpeg image

You can try with Mablab's findpeaks function, or see the attached code in file exchange: <http://www.mathworks.com/matlabcent...

how to find peaks in jpeg image

You can try with Mablab's findpeaks function, or see the attached code in file exchange: <http://www.mathworks.com/matlabcent...

5 years ago | 1

Answered

I need to match following images

There are many sophisticated methods to do so. However, you can try with: out = ssim(TestImage,refImage) This computes t...

I need to match following images

There are many sophisticated methods to do so. However, you can try with: out = ssim(TestImage,refImage) This computes t...

5 years ago | 1

| accepted

Answered

How to check two unbalanced matrix?

Another way may be: X=[1;2;3;4;5]; Y=[2]; Z = X(X==Y)

How to check two unbalanced matrix?

Another way may be: X=[1;2;3;4;5]; Y=[2]; Z = X(X==Y)

5 years ago | 1

Answered

how to crop an image

I don't see any image attached. Anyway, you can try with: *roipoly* to select the image region and crop manually, or *imcrop...

how to crop an image

I don't see any image attached. Anyway, you can try with: *roipoly* to select the image region and crop manually, or *imcrop...

5 years ago | 1

Answered

how can i display a gray scale image instead of mapping 0,255 , between 0 , 127 ?

NewImage = 127*mat2gray(Image)

how can i display a gray scale image instead of mapping 0,255 , between 0 , 127 ?

NewImage = 127*mat2gray(Image)

5 years ago | 1

Answered

A simple fsolve problem from a MATLAB beginner

Define underwoodroot function separately, and call them from another m-file. In one m-file, write the following code, and sav...

A simple fsolve problem from a MATLAB beginner

Define underwoodroot function separately, and call them from another m-file. In one m-file, write the following code, and sav...

5 years ago | 1

| accepted

Answered

How can convert a image from type of double(unit16) to a grayscale image?

ImageGray = mat2gray(ImageDouble);

How can convert a image from type of double(unit16) to a grayscale image?

ImageGray = mat2gray(ImageDouble);

5 years ago | 1