I am an Application Support Engineer at MathWorks. My job position allows me to explore different domains in MathWorks and find my target domain by doing projects in different domains.

My areas of interest are Signal processing and communications.

DISCLAIMER:Any advice or opinions here are my own and in no way reflect that of MathWorks.

Answered

freqresp gives wrong output for purely real inputs

Hi Will, I have brought the issue of 'freqresp accepting frequency input with non-zero imaginary part' to the notice of our dev...

freqresp gives wrong output for purely real inputs

Hi Will, I have brought the issue of 'freqresp accepting frequency input with non-zero imaginary part' to the notice of our dev...

9 days ago | 1

| accepted

Answered

Trouble with integration of double integer

In the given code, as x(k+1))*cos(2*pi*k*t) is a constant value, integration of this constant can be done as shown below. fun =...

Trouble with integration of double integer

In the given code, as x(k+1))*cos(2*pi*k*t) is a constant value, integration of this constant can be done as shown below. fun =...

15 days ago | 0

Answered

Create marks and names for 6 other subjects inside the same structure. Then write code that determines which subject has the highest mark. Once found, print the name of the subject with the highest mark to the command window.

Use the below code to find the subject with the highest mark and print the subject name. len = length(student.subjects); for i...

Create marks and names for 6 other subjects inside the same structure. Then write code that determines which subject has the highest mark. Once found, print the name of the subject with the highest mark to the command window.

Use the below code to find the subject with the highest mark and print the subject name. len = length(student.subjects); for i...

15 days ago | 0

Answered

Remove point at the edge

Hi Fateh In the above figure, find the equation of the bottom line (long width) of the rectangle highlighted in the red colour....

Remove point at the edge

Hi Fateh In the above figure, find the equation of the bottom line (long width) of the rectangle highlighted in the red colour....

15 days ago | 0

Answered

How should I resolve the warning "Warning: Reached the maximum number of function evaluations (100000). The result fails the global error test."?

Hi Yaswanth It looks like the warning occurs even when the maximum number of function evaluations are 2000. I recommend you to ...

How should I resolve the warning "Warning: Reached the maximum number of function evaluations (100000). The result fails the global error test."?

Hi Yaswanth It looks like the warning occurs even when the maximum number of function evaluations are 2000. I recommend you to ...

16 days ago | 0

| accepted

Answered

Changes in font, font size and fontweight (bold) within a tabe

Hi, Please find the below code to change the font, font size and font weight of a table. import mlreportgen.dom.*; myReport =...

Changes in font, font size and fontweight (bold) within a tabe

Hi, Please find the below code to change the font, font size and font weight of a table. import mlreportgen.dom.*; myReport =...

16 days ago | 0

Answered

Calculate values for a variable of an implicit function

Hi Plato To calculate the values for a variable of an implicit function, use the below code. f=0.2; r=0.41; a=0.08; syms y ...

Calculate values for a variable of an implicit function

Hi Plato To calculate the values for a variable of an implicit function, use the below code. f=0.2; r=0.41; a=0.08; syms y ...

16 days ago | 0

Answered

Dear all,how can fix this problem in the picture(Matlab R2019b) ?

Hi Here is the link to install Robust Control Toolbox into an existing installation of MATLAB. https://ww2.mathworks.cn/matlab...

Dear all,how can fix this problem in the picture(Matlab R2019b) ?

Hi Here is the link to install Robust Control Toolbox into an existing installation of MATLAB. https://ww2.mathworks.cn/matlab...

16 days ago | 0

Answered

audio processing with two audio files

Hope this Audio Toolbox link helps you to process the two audio files.

audio processing with two audio files

Hope this Audio Toolbox link helps you to process the two audio files.

16 days ago | 0

Answered

Write a function used to list primes

Hi Ruihan Shift the line 'primeList(1)=0;' from the while loop to above the while loop to print the correct prime numbers when ...

Write a function used to list primes

Hi Ruihan Shift the line 'primeList(1)=0;' from the while loop to above the while loop to print the correct prime numbers when ...

17 days ago | 0

Answered

How can I specify different colors for different groups of data in correlation heatmap?

Hi Rosalba, Here is the way to map the boxes with range -0.7<R<0.7 to the same colour. load patients tbl = table(LastName,Age...

How can I specify different colors for different groups of data in correlation heatmap?

Hi Rosalba, Here is the way to map the boxes with range -0.7<R<0.7 to the same colour. load patients tbl = table(LastName,Age...

17 days ago | 0

Answered

A very simple integration method

The error is due to calling the function sinteg without passing any input arguments. Call the function sinteg as shown below. P...

A very simple integration method

The error is due to calling the function sinteg without passing any input arguments. Call the function sinteg as shown below. P...

17 days ago | 0

Answered

Why do we need Monte Carlo simulation in digital communication to evaluate BER OF 16 QAM?

In normal bit error rate calculation, closed form expressions are used. In monte carlo simulation, simulations contained in MATL...

Why do we need Monte Carlo simulation in digital communication to evaluate BER OF 16 QAM?

In normal bit error rate calculation, closed form expressions are used. In monte carlo simulation, simulations contained in MATL...

1 month ago | 0

Answered

Generate values with constrains

To select a random value from A and to obtain different consecutive A's for every schedule can be done using randperm as well. ...

Generate values with constrains

To select a random value from A and to obtain different consecutive A's for every schedule can be done using randperm as well. ...

1 month ago | 0

Answered

sir, i am not able develop a matlab code to solve four transcendental equations using newton raphson method? i had tried till the creation of jacobian matrix but not able to substitute values in the jacobian matrix please help to solve this problem?

In the given code, the values are not substituted in the jacobian matrix because the initial values are assigned to the variable...

sir, i am not able develop a matlab code to solve four transcendental equations using newton raphson method? i had tried till the creation of jacobian matrix but not able to substitute values in the jacobian matrix please help to solve this problem?

In the given code, the values are not substituted in the jacobian matrix because the initial values are assigned to the variable...

1 month ago | 0

| accepted

Answered

How do you save one or all the images from an array as .png files in a folder.

Hi To save the images from an array as .png files in a folder, please see the below code. a = [zeros(9,4); ones(9,4);]; numI...

How do you save one or all the images from an array as .png files in a folder.

Hi To save the images from an array as .png files in a folder, please see the below code. a = [zeros(9,4); ones(9,4);]; numI...

1 month ago | 0

| accepted

Answered

Error using BVP4c (singular Jacobian encountered)

Hi I hope this link might help you to solve the error (Singular Jacobian encountered) when using bvp4c function in MATLAB.

Error using BVP4c (singular Jacobian encountered)

Hi I hope this link might help you to solve the error (Singular Jacobian encountered) when using bvp4c function in MATLAB.

1 month ago | 0

Answered

What is the command in matlab simulink for change the number of generation without open window optimtool ?

Hi The command to change the number of generations without opening optimtool window is as follows. options = optimoptions('ga...

What is the command in matlab simulink for change the number of generation without open window optimtool ?

Hi The command to change the number of generations without opening optimtool window is as follows. options = optimoptions('ga...

1 month ago | 0

Answered

How to graph a moving plot while keeping another one static

The graph overwriting can be avoided by updating the property 'XData' of the 'plot' function as follows. pp = plot(x(1:1+numel(...

How to graph a moving plot while keeping another one static

The graph overwriting can be avoided by updating the property 'XData' of the 'plot' function as follows. pp = plot(x(1:1+numel(...

1 month ago | 0

Answered

Plotting an equation with summation and roots of bessel function

The roots of the bessel function (first kind, zero order) can be obtained from the below code. Z = 0:0.1:20; J0 = besselj(0,Z)...

Plotting an equation with summation and roots of bessel function

The roots of the bessel function (first kind, zero order) can be obtained from the below code. Z = 0:0.1:20; J0 = besselj(0,Z)...

1 month ago | 0

Answered

matlab 'Index exceeds array boundaries'

In the given code, the initial conditions are passed to 'ode45' from the variable 'X0' which is a vector. The 'X0' values are ta...

matlab 'Index exceeds array boundaries'

In the given code, the initial conditions are passed to 'ode45' from the variable 'X0' which is a vector. The 'X0' values are ta...

1 month ago | 0

Answered

out of memory when using hilbert transform

Hi Yuechen, The maximum size limit of the input data to the 'hilbert' function is the maximum array size limit allowed by MATLA...

out of memory when using hilbert transform

Hi Yuechen, The maximum size limit of the input data to the 'hilbert' function is the maximum array size limit allowed by MATLA...

1 month ago | 0

| accepted

Answered

Plot points on a tetrahedron

Hi Sunayana, To plot a tetrahedron with the four vertices, use the below code. FV.Vertices = [1/2 1/sqrt(2) 0; -1/2 0 1/sqrt(2...

Plot points on a tetrahedron

Hi Sunayana, To plot a tetrahedron with the four vertices, use the below code. FV.Vertices = [1/2 1/sqrt(2) 0; -1/2 0 1/sqrt(2...

1 month ago | 1

| accepted

Answered

Power spectral density unit conversion

To convert the Noise Power Spectral Density of the accelerometer as an acceleration unit, see the code below. psd = 300*1e-6; ...

Power spectral density unit conversion

To convert the Noise Power Spectral Density of the accelerometer as an acceleration unit, see the code below. psd = 300*1e-6; ...

2 months ago | 0

| accepted

Answered

Tone generation using synthesis techniques.

Hope the book in this link helps to generate a tune based on synthesis techniques.

Tone generation using synthesis techniques.

Hope the book in this link helps to generate a tune based on synthesis techniques.

2 months ago | 0

Answered

Error using symengine in numerical solver

Hi David, The above issue is replicated by assuming that ‘V’ is also a NX1 vector. The issue can be solved by using ‘./’ instea...

Error using symengine in numerical solver

Hi David, The above issue is replicated by assuming that ‘V’ is also a NX1 vector. The issue can be solved by using ‘./’ instea...

2 months ago | 0

Answered

How to Convetr MATLAB files to CAD files(STEP/IGES)

To convert MATLAB files to CAD files in IGES format, here is the File Exchange link on MATLAB Central which is a forum for our p...

How to Convetr MATLAB files to CAD files(STEP/IGES)

To convert MATLAB files to CAD files in IGES format, here is the File Exchange link on MATLAB Central which is a forum for our p...

2 months ago | 0

| accepted

Answered

Revolving a 2D profile around any axis

The rotate function allows you to rotate a curve around any axis. To rotate the curve along y-axis, use the below code. h = sur...

Revolving a 2D profile around any axis

The rotate function allows you to rotate a curve around any axis. To rotate the curve along y-axis, use the below code. h = sur...

2 months ago | 0

Answered

For a problem of Amplitude Modulation, if I want to perform it on Simulink but get the various parameters like carrier freq. etc. from a companion m file, how do I do it ??

There are two ways to access variables from a .m file to Simulink. Before running the Simulink model, run the .m file to save ...

For a problem of Amplitude Modulation, if I want to perform it on Simulink but get the various parameters like carrier freq. etc. from a companion m file, how do I do it ??

There are two ways to access variables from a .m file to Simulink. Before running the Simulink model, run the .m file to save ...

2 months ago | 0

| accepted

Answered

how to make drawnow for this figure

To animate the red line shown in the attached figure, use the below code. Here, pause is used instead of draw to notice that the...

how to make drawnow for this figure

To animate the red line shown in the attached figure, use the below code. Here, pause is used instead of draw to notice that the...

2 months ago | 0