I am Application Support Engineer at MathWorks. My main responsibilities here is to work on project related to my area and customer support through MATLAB answers.

My area of interests are VLSI, robotics and embedded systems.

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

Answered

Signal Analysis and Reconstruction

Hi Loren, You may see the documentation of concatenate to know more about this function.

Signal Analysis and Reconstruction

Hi Loren, You may see the documentation of concatenate to know more about this function.

2 months ago | 0

Answered

Not Enough Input Arguments

Hi Sagar, You may refer to following documentation of xlsread . https://www.mathworks.com/help/matlab/ref/xlsread.html#btg5vmt...

Not Enough Input Arguments

Hi Sagar, You may refer to following documentation of xlsread . https://www.mathworks.com/help/matlab/ref/xlsread.html#btg5vmt...

2 months ago | 0

Answered

How to derive Q-factor from BER?

Hi Alina, Since I do not have your code, I have written a small code. You may refer to it: ber = 2*10^-4 syms ber Q eqn = 0....

How to derive Q-factor from BER?

Hi Alina, Since I do not have your code, I have written a small code. You may refer to it: ber = 2*10^-4 syms ber Q eqn = 0....

2 months ago | 0

Answered

Convert complex number to phase shift in simulink

Hi Bamboo, In my understanding, there are couple of blocks which might be helpful for you. 1. Complex to magnitude angle 2. ...

Convert complex number to phase shift in simulink

Hi Bamboo, In my understanding, there are couple of blocks which might be helpful for you. 1. Complex to magnitude angle 2. ...

2 months ago | 0

Answered

How to search for where a function is used in Simulink Model

Hi Michael, Which item displays the full path of the item. If item is a MATLAB function in a Simulink model, then which display...

How to search for where a function is used in Simulink Model

Hi Michael, Which item displays the full path of the item. If item is a MATLAB function in a Simulink model, then which display...

2 months ago | 0

Answered

Graphing complex fourier series

Hi Santiago, You are getting this warning because you are attempting to plot a complex input with plot function. If you want to...

Graphing complex fourier series

Hi Santiago, You are getting this warning because you are attempting to plot a complex input with plot function. If you want to...

2 months ago | 0

Answered

Solving difference equation using DFT

Hi Vishwajit, You may use the following code for your reference to solve above difference equation N = 8; a = [1 4 -1]; b = ...

Solving difference equation using DFT

Hi Vishwajit, You may use the following code for your reference to solve above difference equation N = 8; a = [1 4 -1]; b = ...

2 months ago | 0

Answered

Doubt on uitable on inserting particular number of rows and columns

Hi Lokesh, I have written a small code for your reference. You can proceed with this code f = figure; uit = uitable(f) d = ...

Doubt on uitable on inserting particular number of rows and columns

Hi Lokesh, I have written a small code for your reference. You can proceed with this code f = figure; uit = uitable(f) d = ...

2 months ago | 0

| accepted

Answered

Generate C++ code from standalone stateflow chart

Hi Meram, You can use Simulink Coder software to generate standalone C or C++ code from your Physical Networks models. you may ...

Generate C++ code from standalone stateflow chart

Hi Meram, You can use Simulink Coder software to generate standalone C or C++ code from your Physical Networks models. you may ...

3 months ago | 0

Answered

lauch simulink simulation from windows command prompt

Hi Matthieu, Please refer to the following link. This might help you https://www.mathworks.com/matlabcentral/answers/102082-ho...

lauch simulink simulation from windows command prompt

Hi Matthieu, Please refer to the following link. This might help you https://www.mathworks.com/matlabcentral/answers/102082-ho...

3 months ago | 0

Answered

Implementation of DIF FFT

Hi Vishwajith, Please refer to the following link. The similar problem is asked earlier as well. This link might help you. htt...

Implementation of DIF FFT

Hi Vishwajith, Please refer to the following link. The similar problem is asked earlier as well. This link might help you. htt...

3 months ago | 0

| accepted

Answered

How to use Power Spectral density block in Simulink?

Hi Vineeth, Power Spectral Density block displays the frequency content of the buffer in graph window. The block calculates the...

How to use Power Spectral density block in Simulink?

Hi Vineeth, Power Spectral Density block displays the frequency content of the buffer in graph window. The block calculates the...

3 months ago | 0

Answered

Error due to multiple causes in Simulink block diagram

Hi Linee, The error is due to the "From worksapce" block, which you are using in your model. The first collumn of your data (wh...

Error due to multiple causes in Simulink block diagram

Hi Linee, The error is due to the "From worksapce" block, which you are using in your model. The first collumn of your data (wh...

3 months ago | 0

Answered

how can I add a dielectric surface, like the terrain, in the antenna toolbox

Hi Ernst, You may use any of the installed antenna for terrain modelling. For adding a dielectric surface, you can DielctricCat...

how can I add a dielectric surface, like the terrain, in the antenna toolbox

Hi Ernst, You may use any of the installed antenna for terrain modelling. For adding a dielectric surface, you can DielctricCat...

3 months ago | 0

Answered

Exporting model from workspace to Simulink

Hi Shafaq, You can directly import variable from workspace using block from workspace. For more information on this you may ref...

Exporting model from workspace to Simulink

Hi Shafaq, You can directly import variable from workspace using block from workspace. For more information on this you may ref...

4 months ago | 0

Answered

How can I represent the following piecewise function in Simulink

Hi Idrak, You may refer to this link for using MATLAB function.

How can I represent the following piecewise function in Simulink

Hi Idrak, You may refer to this link for using MATLAB function.

4 months ago | 0

Answered

log function returning complex answers where there should be none

Hi Sandra, The complex values might be coming because value of co2r(r,m)-co2r(r,m-1) is negative. I would suggest you to put a ...

log function returning complex answers where there should be none

Hi Sandra, The complex values might be coming because value of co2r(r,m)-co2r(r,m-1) is negative. I would suggest you to put a ...

5 months ago | 0

Answered

Does Financial Toolbox provide access to historical market data?

Hi Michael, Financial Toolbox provides functions for the mathematical modeling and statistical analysis of financial data. To a...

Does Financial Toolbox provide access to historical market data?

Hi Michael, Financial Toolbox provides functions for the mathematical modeling and statistical analysis of financial data. To a...

5 months ago | 0

Answered

The curve fitting tool won't open when using the cftool command or when clicking on Curve Fitting in Apps. There is also an error message.

Hi Luca, It seems you have used script name as any of the MATLAB function. Try to rename the script (other than MATLAB keyword)...

The curve fitting tool won't open when using the cftool command or when clicking on Curve Fitting in Apps. There is also an error message.

Hi Luca, It seems you have used script name as any of the MATLAB function. Try to rename the script (other than MATLAB keyword)...

5 months ago | 0

Answered

Calculate fourier coefficients from XYZ displacement

Hi Ash, You may refer to this link. This has similar prblem what you have asked. Alternatively, you can also use cftool.

Calculate fourier coefficients from XYZ displacement

Hi Ash, You may refer to this link. This has similar prblem what you have asked. Alternatively, you can also use cftool.

5 months ago | 0

Answered

how to generate a chirp pulse and obtain its phase

Hi Dang, To generate a chirp pulse, you may refer to following link.

how to generate a chirp pulse and obtain its phase

Hi Dang, To generate a chirp pulse, you may refer to following link.

5 months ago | 0

Answered

Load data into experience buffer: DDPG agent

Hi Daksh, You may find following link useful for your answer.

Load data into experience buffer: DDPG agent

Hi Daksh, You may find following link useful for your answer.

5 months ago | 0

Answered

Getting the value of a graph at a certain point

Hi Prateek, You can use interp1 function to know the y values for the corresponding x values. You may also refer to follwing ex...

Getting the value of a graph at a certain point

Hi Prateek, You can use interp1 function to know the y values for the corresponding x values. You may also refer to follwing ex...

5 months ago | 0

| accepted

Answered

Solving two equations two unknowns

Hi Jacob, You have written in the last line "its only giving me the return " (which is an structure). For systems of equations,...

Solving two equations two unknowns

Hi Jacob, You have written in the last line "its only giving me the return " (which is an structure). For systems of equations,...

5 months ago | 0

Answered

Good Tutorial for MPC?

Hi Nathan, You may refer to follwing link for detailed explanation on the model predictive controller. https://www.mathworks.c...

Good Tutorial for MPC?

Hi Nathan, You may refer to follwing link for detailed explanation on the model predictive controller. https://www.mathworks.c...

5 months ago | 0

Answered

How do I change the amplitude of a signal based on uniform random distribution? Not sure how to proceed.

Hi Prashant, In your question, transmitter output is two level NRZ signal. For generating the data bits based on uniform random...

How do I change the amplitude of a signal based on uniform random distribution? Not sure how to proceed.

Hi Prashant, In your question, transmitter output is two level NRZ signal. For generating the data bits based on uniform random...

5 months ago | 0

Answered

deg2km command does not calculate distance between two points

Hi Hülya, Distance given by the deg2km depens on what radius of earth you are considering. Default value given in MATLAB docume...

deg2km command does not calculate distance between two points

Hi Hülya, Distance given by the deg2km depens on what radius of earth you are considering. Default value given in MATLAB docume...

6 months ago | 0

Answered

How can I calculate the area between two curves in a specific section?

Hi Daniel, When n=1, n-1 goes to zero for which A(0,:) is an invalid index. The error you are getting is becuse of this only.

How can I calculate the area between two curves in a specific section?

Hi Daniel, When n=1, n-1 goes to zero for which A(0,:) is an invalid index. The error you are getting is becuse of this only.

6 months ago | 0

Answered

I have acquired some y axis values in display in the simulink. I want to automatedly find the coresponding x value in the graph. is the any such block available for the same or any method to do so?

Hi Shantanu, Since I do not have access to your model, what I understood from your question is that you want to find the index ...

I have acquired some y axis values in display in the simulink. I want to automatedly find the coresponding x value in the graph. is the any such block available for the same or any method to do so?

Hi Shantanu, Since I do not have access to your model, what I understood from your question is that you want to find the index ...

6 months ago | 0

Answered

How to control a unipolar stepper motor ?

Hi Jérémy, Following are the requirements for the stepper motor control using MATLAB: Software: MATLAB MATLAB support packag...

How to control a unipolar stepper motor ?

Hi Jérémy, Following are the requirements for the stepper motor control using MATLAB: Software: MATLAB MATLAB support packag...

6 months ago | 0