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

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

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

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

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

14 days 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,...

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

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

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

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

2 months ago | 0

| accepted

Answered

Best way to plot spectogram of multiple single frequency inputs (0.05hz, 0.1hz, 0.15hz etc) and corresponding output data

Use the spectrogram function to plot the spectrogram of multiple single frequency inputs. Define the input signal with different...

Best way to plot spectogram of multiple single frequency inputs (0.05hz, 0.1hz, 0.15hz etc) and corresponding output data

Use the spectrogram function to plot the spectrogram of multiple single frequency inputs. Define the input signal with different...

2 months ago | 0

Answered

Save output variables from uitable in the workspace

Hi Joseba, To save the updated values of the editable table into the workspace in the newData variable, use the below command. ...

Save output variables from uitable in the workspace

Hi Joseba, To save the updated values of the editable table into the workspace in the newData variable, use the below command. ...

2 months ago | 0

| accepted

Answered

Numden on complex equation returns unexpected result

The given input to numden function is a symbolic expression. However, as it involves a complex number, the numden function handl...

Numden on complex equation returns unexpected result

The given input to numden function is a symbolic expression. However, as it involves a complex number, the numden function handl...

3 months ago | 0

Answered

Is it possible to change stackedplots background color?

As of now, changing the background color in stackedplot is not supported in AppDesigner -> uifigure for the available MATLAB rel...

Is it possible to change stackedplots background color?

As of now, changing the background color in stackedplot is not supported in AppDesigner -> uifigure for the available MATLAB rel...

3 months ago | 1

| accepted

Answered

Problem combining Count and switch block in simulink

The issue occurred primarily because the Switch block is being used before the Counter block in your Simulink model. In order to...

Problem combining Count and switch block in simulink

The issue occurred primarily because the Switch block is being used before the Counter block in your Simulink model. In order to...

3 months ago | 0

| accepted

Answered

Using nested loop to check for whole numbers inside a matrix

To check for whole numbers inside a matrix using nested loop, use the code as shown below. x = [1 2.5 4;3.2 6 9;5.2 6 7]; [rx,...

Using nested loop to check for whole numbers inside a matrix

To check for whole numbers inside a matrix using nested loop, use the code as shown below. x = [1 2.5 4;3.2 6 9;5.2 6 7]; [rx,...

3 months ago | 0

Answered

How to calculate the spectrum of the message w(t), the spectrum of the carrier c(t), and the spectrum of the received signal v(t), and the spectrum of the envelope?

To calculate the spectrum of the carrier signal, use the ‘fft’ function as shown below. The same approach can be followed to cal...

How to calculate the spectrum of the message w(t), the spectrum of the carrier c(t), and the spectrum of the received signal v(t), and the spectrum of the envelope?

To calculate the spectrum of the carrier signal, use the ‘fft’ function as shown below. The same approach can be followed to cal...

3 months ago | 0

Answered

Phase and amplitude shift

Use two 1D lookup tables where the inputs of 1st and 2nd lookup tables is average power and the output of one lookup table is am...

Phase and amplitude shift

Use two 1D lookup tables where the inputs of 1st and 2nd lookup tables is average power and the output of one lookup table is am...

5 months ago | 0

Answered

Are there any examples using ecmmvnrfish?

ecmmvnrfish is used to find the fisher information matrix. The inputs to the function are Data, Design and Covariance. The examp...

Are there any examples using ecmmvnrfish?

ecmmvnrfish is used to find the fisher information matrix. The inputs to the function are Data, Design and Covariance. The examp...

5 months ago | 0

Answered

fix the soulation pleaase

In the provided code, the size of p is 1x2. However, the size of p(:,size(p,2))+0.2*[fx;fy] is 2x1. While concatenating horizont...

fix the soulation pleaase

In the provided code, the size of p is 1x2. However, the size of p(:,size(p,2))+0.2*[fx;fy] is 2x1. While concatenating horizont...

5 months ago | 0

Answered

Setting symbol rate and sampling frequency for a carrier in Simulink

The symbol rate of each of the given signals depends on the Sample time parameter in Random Integer Generator block. However, to...

Setting symbol rate and sampling frequency for a carrier in Simulink

The symbol rate of each of the given signals depends on the Sample time parameter in Random Integer Generator block. However, to...

5 months ago | 0

| accepted

Answered

Can someone confirm my differentiation code is correct?

The code written to differentiate P (a, u, EA1, EA2) with respect to u is correct. It will give correct result. The reason for t...

Can someone confirm my differentiation code is correct?

The code written to differentiate P (a, u, EA1, EA2) with respect to u is correct. It will give correct result. The reason for t...

5 months ago | 1

| accepted

Answered

OCR function does not recognize number 8

While passing the image data to ocr function, no need to convert the image from RGB to gray as ocr function converts truecolor o...

OCR function does not recognize number 8

While passing the image data to ocr function, no need to convert the image from RGB to gray as ocr function converts truecolor o...

5 months ago | 0

Answered

How can I resize a plot image and save it?

Assuming the resolution of image to be 32*32 pixels, the image is saved in the specified resolution and format using print funct...

How can I resize a plot image and save it?

Assuming the resolution of image to be 32*32 pixels, the image is saved in the specified resolution and format using print funct...

5 months ago | 0

Answered

Write a function called mysum that sums the first n positive numbers. Give the result x1 for n=20,and the result x2 for n=100. For example, if n = 2, mysum computes the sum of 1 and 2. The result is 3.

Create a function using the keyword ‘function’ and save the file with name mysum.m. function output = mysum(n) output = 0; fo...

Write a function called mysum that sums the first n positive numbers. Give the result x1 for n=20,and the result x2 for n=100. For example, if n = 2, mysum computes the sum of 1 and 2. The result is 3.

Create a function using the keyword ‘function’ and save the file with name mysum.m. function output = mysum(n) output = 0; fo...

5 months ago | 0

Answered

Convert an image with 16 bit depth to 32 or 62 bit in MATLAB?

To convert a 16-bit monocromatic image (no colors, black and white) to 32-bit, the below procedure can be followed with gray sca...

Convert an image with 16 bit depth to 32 or 62 bit in MATLAB?

To convert a 16-bit monocromatic image (no colors, black and white) to 32-bit, the below procedure can be followed with gray sca...

5 months ago | 1

| accepted

Answered

Using ppval for a polynomial of two variables

A piecewise polynomial that is a function of two variables cannot be evaluated using ppval. Use the given link for reference htt...

Using ppval for a polynomial of two variables

A piecewise polynomial that is a function of two variables cannot be evaluated using ppval. Use the given link for reference htt...

5 months ago | 0

Answered

How to hide the mouse pointer in app designer

As of now, using a custom pointer is not supported in AppDesigner -> uifigure for the available MATLAB releases. However, the c...

How to hide the mouse pointer in app designer

As of now, using a custom pointer is not supported in AppDesigner -> uifigure for the available MATLAB releases. However, the c...

5 months ago | 0

Answered

what is the noise bandwidth considered while calcuating SNR ; for func of the form .. r = snr(x,fs,n)

The noise bandwidth is equal to the sampling frequency. This can be obtained by plotting the power spectral density of noise. ...

what is the noise bandwidth considered while calcuating SNR ; for func of the form .. r = snr(x,fs,n)

The noise bandwidth is equal to the sampling frequency. This can be obtained by plotting the power spectral density of noise. ...

5 months ago | 0

| accepted

Answered

FIR Filter function sample rate

To design an FIR bandpass filter with a passband of 1000Hz to 2000Hz and fs=50000Hz, the passband frequency is given as normaliz...

FIR Filter function sample rate

To design an FIR bandpass filter with a passband of 1000Hz to 2000Hz and fs=50000Hz, the passband frequency is given as normaliz...

5 months ago | 0

| accepted

Answered

Circular vs. linear convolution of 2D data

Hi William, In order to zero-pad a 2D data i.e. matrix, padding should be in such a way that the row length is equal to r1+r2-1...

Circular vs. linear convolution of 2D data

Hi William, In order to zero-pad a 2D data i.e. matrix, padding should be in such a way that the row length is equal to r1+r2-1...

5 months ago | 0

| accepted