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

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.

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

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

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

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

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

8 days ago | 0

Answered

Hello, I want to simulate traffic between a multiple antenna base station and a single antenna user for mm-wave frequency of 28GHz. What is the most suitable channel model for such high frequency and what kind of beamforming would you suggest?

Hi The suitable channel models for mm-wave frequency of 28 GHz are nrTDLChannel and nrCDLChannel that followed the aspects of T...

Hello, I want to simulate traffic between a multiple antenna base station and a single antenna user for mm-wave frequency of 28GHz. What is the most suitable channel model for such high frequency and what kind of beamforming would you suggest?

Hi The suitable channel models for mm-wave frequency of 28 GHz are nrTDLChannel and nrCDLChannel that followed the aspects of T...

8 days ago | 0

Answered

Problem solving system of differential equations using dsolve()

The input odes to the dsolve function can be a vector only when the number of indeterminates are equal to the number of odes. Ho...

Problem solving system of differential equations using dsolve()

The input odes to the dsolve function can be a vector only when the number of indeterminates are equal to the number of odes. Ho...

8 days ago | 0

Answered

How to quickly find the minimal number of rows in a sparse matrix to form a full-rank sub-matrix?

Here is a similar question for your reference to find the minimal number of rows in a sparse matrix to form a full-rank sub-matr...

How to quickly find the minimal number of rows in a sparse matrix to form a full-rank sub-matrix?

Here is a similar question for your reference to find the minimal number of rows in a sparse matrix to form a full-rank sub-matr...

9 days ago | 0

Answered

Is there a way to programmatically "print" the window of the dsp.SpectrumAnalyzer to a JPG or PNG file?

Use the below code to get the spectrum analyzer window to a JPG or PNG file including the measurement data programmatically. sc...

Is there a way to programmatically "print" the window of the dsp.SpectrumAnalyzer to a JPG or PNG file?

Use the below code to get the spectrum analyzer window to a JPG or PNG file including the measurement data programmatically. sc...

9 days ago | 0

Answered

niftiread niftiwrite cycle inappropriately changes image orientation

Hi Randolph, I have heard that the issue with niftiwrite function is known and the concerned parties may be investigating furth...

niftiread niftiwrite cycle inappropriately changes image orientation

Hi Randolph, I have heard that the issue with niftiwrite function is known and the concerned parties may be investigating furth...

9 days ago | 0

Answered

how to copy circle for a new image using imfindcircle?

Use the code below to copy circle for a new image using 'imfindcircle'. theta=0:1:360; r=round(centers(1,1) + radii*sin(theta)...

how to copy circle for a new image using imfindcircle?

Use the code below to copy circle for a new image using 'imfindcircle'. theta=0:1:360; r=round(centers(1,1) + radii*sin(theta)...

1 month ago | 0

Answered

How to compute the scaled version of gray scale image

The ‘NumLevels’ property in ‘graycomatrix’ function scales the image to 8 gray scales as the default value of ‘NumLevels’ is 8. ...

How to compute the scaled version of gray scale image

The ‘NumLevels’ property in ‘graycomatrix’ function scales the image to 8 gray scales as the default value of ‘NumLevels’ is 8. ...

1 month ago | 0

Answered

How to get the range of a complex Inequality

The range of complex inequality can be obtained by using the following syntax for ‘solve’ function. S = solve(a0>0, [kp,ki], 'I...

How to get the range of a complex Inequality

The range of complex inequality can be obtained by using the following syntax for ‘solve’ function. S = solve(a0>0, [kp,ki], 'I...

1 month ago | 0

Answered

how can i use 3d scatter interpolation

Use ‘scatteredInterpolant’ function to interpolate the 3d scattered data. The 3d scattered data can also be interpolated using D...

how can i use 3d scatter interpolation

Use ‘scatteredInterpolant’ function to interpolate the 3d scattered data. The 3d scattered data can also be interpolated using D...

1 month ago | 0

Answered

Get data from basemap 'topographic'

1. In order to plot a rectangle on the matlab basemap ‘topographic’, use the below code. xRec = [44.56 44.51 44.51 44.56 44.56]...

Get data from basemap 'topographic'

1. In order to plot a rectangle on the matlab basemap ‘topographic’, use the below code. xRec = [44.56 44.51 44.51 44.56 44.56]...

1 month ago | 0

| accepted

Answered

Drawing a tangent line (concave line) for a curve

Considering the curve equation as f(x), find the derivative of the curve w.r.to the variable the curve depends on i.e. ‘x’. Eval...

Drawing a tangent line (concave line) for a curve

Considering the curve equation as f(x), find the derivative of the curve w.r.to the variable the curve depends on i.e. ‘x’. Eval...

1 month ago | 0

Answered

Plot animation of multivariable function

I considered a random function to plot the animation of a multivariable function. x = linspace(-2,2); y = linspace(-2,2); z =...

Plot animation of multivariable function

I considered a random function to plot the animation of a multivariable function. x = linspace(-2,2); y = linspace(-2,2); z =...

1 month ago | 0

Answered

How to convert an ideal filter to a non-ideal filter?

In the above code, the size of C is 3*3 due to the selection of the ‘shape’ in ‘conv2’ function as ‘same’. However, selecting th...

How to convert an ideal filter to a non-ideal filter?

In the above code, the size of C is 3*3 due to the selection of the ‘shape’ in ‘conv2’ function as ‘same’. However, selecting th...

1 month ago | 0

| accepted

Answered

how to substitute sym variables in jacobian matrix with numeric values?

The ‘subs’ function works as expected. Please find the code shown below. Iscr = 1; Iph = 2; Vth = 5; n = 4; Vocr = 3; Im =...

how to substitute sym variables in jacobian matrix with numeric values?

The ‘subs’ function works as expected. Please find the code shown below. Iscr = 1; Iph = 2; Vth = 5; n = 4; Vocr = 3; Im =...

1 month ago | 0

Answered

what is the code for converting .wav audio file to hex values and also the reverse of it

Use the following code to convert the .wav audio file to hex values and the reverse of it. [y,Fs] = audioread('RockGuitar.wav')...

what is the code for converting .wav audio file to hex values and also the reverse of it

Use the following code to convert the .wav audio file to hex values and the reverse of it. [y,Fs] = audioread('RockGuitar.wav')...

1 month ago | 0

Answered

Error in port widths or dimensions. Output port 1 of 'untitled/Add' is a one dimensional vector with 64 elements

Hi Awais Ahmad, After creating the Simulink model, run the pulse_detector_v1_tb.mlx testbench file available from the link: htt...

Error in port widths or dimensions. Output port 1 of 'untitled/Add' is a one dimensional vector with 64 elements

Hi Awais Ahmad, After creating the Simulink model, run the pulse_detector_v1_tb.mlx testbench file available from the link: htt...

2 months ago | 0

Answered

How do I edit Default Exciter = dipole in the Antenna Toolbox

Use the following code to design the reflectorCorner antenna with operating frequency 434 MHz. antenna = reflectorCorner; des...

How do I edit Default Exciter = dipole in the Antenna Toolbox

Use the following code to design the reflectorCorner antenna with operating frequency 434 MHz. antenna = reflectorCorner; des...

3 months ago | 0

Answered

How to create a 3 variable Karnaugh Map

The following link might help in creating a 3 variable Karnaugh map in MATLAB. https://www.mathworks.com/matlabcentral/fileexch...

How to create a 3 variable Karnaugh Map

The following link might help in creating a 3 variable Karnaugh map in MATLAB. https://www.mathworks.com/matlabcentral/fileexch...

3 months ago | 0

Answered

Using the findpeaks function with threshold

The threshold value can be inputted by the user as shown below. prompt = 'What is the threshold value? '; threshold = input(pr...

Using the findpeaks function with threshold

The threshold value can be inputted by the user as shown below. prompt = 'What is the threshold value? '; threshold = input(pr...

3 months ago | 0

Answered

How to close the signalAnalyzer app from the command line?

As of now, closing the signal analyzer app from the command window is not supported for the available MATLAB releases. However,...

How to close the signalAnalyzer app from the command line?

As of now, closing the signal analyzer app from the command window is not supported for the available MATLAB releases. However,...

3 months ago | 1

| accepted

Answered

how do we plot enumerated data and real floating point data in the same plot/figure?

The y-axis values in the plot function do not support enumerated data types. Refer https://www.mathworks.com/help/matlab/ref/plo...

how do we plot enumerated data and real floating point data in the same plot/figure?

The y-axis values in the plot function do not support enumerated data types. Refer https://www.mathworks.com/help/matlab/ref/plo...

3 months ago | 0

| accepted

Answered

Did I implement the backwards-euler Methode correctly?

Hi Marchus, The backward euler method is implemented correctly, however as f is not a function of t, the plot is constant for i...

Did I implement the backwards-euler Methode correctly?

Hi Marchus, The backward euler method is implemented correctly, however as f is not a function of t, the plot is constant for i...

4 months ago | 0

| accepted

Answered

Hank and Tank code model

Hi MATLAB has few examples that are related to keynesian models. https://www.mathworks.com/help/econ/examples/modeling-the-un...

Hank and Tank code model

Hi MATLAB has few examples that are related to keynesian models. https://www.mathworks.com/help/econ/examples/modeling-the-un...

4 months ago | 0

Answered

how to generate an image given 2D points coordinates and the gray intensity value

Hi Luca To generate an image with the given 2D point coordinates and the gray intensity value, use the imshow function in MATLA...

how to generate an image given 2D points coordinates and the gray intensity value

Hi Luca To generate an image with the given 2D point coordinates and the gray intensity value, use the imshow function in MATLA...

4 months ago | 0

| accepted