I am an Applications Support Engineer at Mathworks.

Disclaimer: Any articles/ideas/opinions here are my own and in no way reflect that of Mathworks.

Answered

Injecting (and combining) a sine wave after a period of time

A plausible solution is as follows Generate the required sinusoidal signal %define sine wave %%Time specifications: Fs = ...

Injecting (and combining) a sine wave after a period of time

A plausible solution is as follows Generate the required sinusoidal signal %define sine wave %%Time specifications: Fs = ...

1 month ago | 0

Answered

finding peaks in Simulink

findpeaks accepts only vector data as it's input arguments. A possible workaround would be to use a Buffer block in between Simu...

finding peaks in Simulink

findpeaks accepts only vector data as it's input arguments. A possible workaround would be to use a Buffer block in between Simu...

2 months ago | 0

Answered

User Defined Montage but filling 12x8 Array

A possible workaround is as follows % Create an empty cell array of size 12x8 imgList = cell(96); % calculate the cell arra...

User Defined Montage but filling 12x8 Array

A possible workaround is as follows % Create an empty cell array of size 12x8 imgList = cell(96); % calculate the cell arra...

2 months ago | 0

Answered

Calculate mean distance between lines in an image

For extracting the straight lines, a plausible solution is as follows Find edges in the image using edge function Apply hough ...

Calculate mean distance between lines in an image

For extracting the straight lines, a plausible solution is as follows Find edges in the image using edge function Apply hough ...

2 months ago | 0

Answered

How to create 95 and 99 percent confidence ellipses around my data

Please refer to this answer for leads on how to plot confidence ellipses

How to create 95 and 99 percent confidence ellipses around my data

Please refer to this answer for leads on how to plot confidence ellipses

2 months ago | 0

Solved

Dimensions of a rectangle

The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

2 months ago

Solved

Area of an equilateral triangle

Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

2 months ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

2 months ago

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

2 months ago

Solved

Sum of series VII

What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

2 months ago

Solved

Sum of series

a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

2 months ago

Answered

Plot 2D Gaussian spot and histograms of horizontal and vertical axis in one figure

The above diagram can be created using subplot (for creating the grid of plots) and camroll (for rotating the histogram) % Crea...

Plot 2D Gaussian spot and histograms of horizontal and vertical axis in one figure

The above diagram can be created using subplot (for creating the grid of plots) and camroll (for rotating the histogram) % Crea...

2 months ago | 1

| accepted

Answered

Finding circle in image

Please refer to the following answer for some tips on how to improvecircle detection using regionprops https://www.mathworks.co...

Finding circle in image

Please refer to the following answer for some tips on how to improvecircle detection using regionprops https://www.mathworks.co...

2 months ago | 0

| accepted

Answered

How to convert augmented datastore to image datastore?

For augmening input data in the pixelLabelImageDatastore, the Data Augmentation property of pixelLabelImageDatastore can be set....

How to convert augmented datastore to image datastore?

For augmening input data in the pixelLabelImageDatastore, the Data Augmentation property of pixelLabelImageDatastore can be set....

2 months ago | 0

Answered

Which App in Machine Learning and Deep Learning is best for strongly nonlinear and chaotic data?

For Nonlinear datasets, it is recommended to use fitnlm. An example about predicting using non linear regression can be found he...

Which App in Machine Learning and Deep Learning is best for strongly nonlinear and chaotic data?

For Nonlinear datasets, it is recommended to use fitnlm. An example about predicting using non linear regression can be found he...

2 months ago | 0

| accepted

Answered

How to solve a transcendental differential equation?

Please refer to this community answer

How to solve a transcendental differential equation?

Please refer to this community answer

2 months ago | 0

Answered

how can we generate a vector of length 100 with random number in between 0 and 1 with uniform probability such that sum of these numbers/100 is equal to 0.75

Please use randfixedsum, available on the File Exchange https://www.mathworks.com/matlabcentral/fileexchange/9700-random-vecto...

how can we generate a vector of length 100 with random number in between 0 and 1 with uniform probability such that sum of these numbers/100 is equal to 0.75

Please use randfixedsum, available on the File Exchange https://www.mathworks.com/matlabcentral/fileexchange/9700-random-vecto...

2 months ago | 0

Answered

How to create a dataset with an Epsilon Skew Normal distribution?

Currently, there isn't any MATLAB function to generate Epsilon Skew Normal DIstribution, but there is a workaround for it. Plea...

How to create a dataset with an Epsilon Skew Normal distribution?

Currently, there isn't any MATLAB function to generate Epsilon Skew Normal DIstribution, but there is a workaround for it. Plea...

2 months ago | 0

Answered

How can we solve this, how to convert mupad to live script?

Please refer to the following link - https://www.mathworks.com/help/symbolic/convert-mupad-notebooks-to-matlab.html

How can we solve this, how to convert mupad to live script?

Please refer to the following link - https://www.mathworks.com/help/symbolic/convert-mupad-notebooks-to-matlab.html

3 months ago | 0

Solved

Which quadrant?

Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

3 months ago

Solved

Filter AC, pass DC

Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component. ...

3 months ago

Solved

Compute a dot product of two vectors x and y

x and y are input vectors, d is a number and contains their dot product

3 months ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

3 months ago

Answered

relative error of machine epsilon

According to the formal definition, the approximation of Machine Epsilon is as follows epsilon = 1.0; while (1.0 + 0.5 * eps...

relative error of machine epsilon

According to the formal definition, the approximation of Machine Epsilon is as follows epsilon = 1.0; while (1.0 + 0.5 * eps...

3 months ago | 0

Answered

Create a function myPrimes that returns the first n primes as a vector, given a positive integer. For example, if the positive integer is 5, the vector returned would include 1, 2, 3, 5, 7. In your script, prompt the user for the positive integer val

Refactor the first two lines to clc; n=input('Prime Numbers until:'); output = myPrimes(n) Edit : Addressed @Rik 's feedba...

Create a function myPrimes that returns the first n primes as a vector, given a positive integer. For example, if the positive integer is 5, the vector returned would include 1, 2, 3, 5, 7. In your script, prompt the user for the positive integer val

Refactor the first two lines to clc; n=input('Prime Numbers until:'); output = myPrimes(n) Edit : Addressed @Rik 's feedba...

3 months ago | 0

Answered

Monitor Deep Learning Training Progress

I tried reproducing the above issue using an example provided in the documentation - digitDatasetPath = fullfile(matlabroot,'t...

Monitor Deep Learning Training Progress

I tried reproducing the above issue using an example provided in the documentation - digitDatasetPath = fullfile(matlabroot,'t...

3 months ago | 0

| accepted