I am an engineer in Engineering Development Group at Mathworks, Hyderabad. My main responsibilities include handling technical support cases at Mathworks.

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

Answered

Dirac Comb as a function of x

You can refer to the following link https://www.mathworks.com/matlabcentral/answers/52219-how-can-i-plot-a-comb-function?s_tid=...

Dirac Comb as a function of x

You can refer to the following link https://www.mathworks.com/matlabcentral/answers/52219-how-can-i-plot-a-comb-function?s_tid=...

1 year ago | 0

Answered

Report PDF With Landscape Pages including tables

I don't see any line in the code which is intended to add table to the report. Try adding the following line in your code add(r...

Report PDF With Landscape Pages including tables

I don't see any line in the code which is intended to add table to the report. Try adding the following line in your code add(r...

1 year ago | 0

Answered

Is simscape electronic components (especially NPN BJTs) available in MATLAB 2018a?

Yes, NPN Bipolar Transistor is available in MATLAB 2018a. You can refer to the following link to know more about all the availab...

Is simscape electronic components (especially NPN BJTs) available in MATLAB 2018a?

Yes, NPN Bipolar Transistor is available in MATLAB 2018a. You can refer to the following link to know more about all the availab...

1 year ago | 0

Answered

I'm trying to create a video using 96 images and I keep getting the error below.

Make sure the folder containing the .png files is added to the MATLAB search path. You can use addpath to do the same.

I'm trying to create a video using 96 images and I keep getting the error below.

Make sure the folder containing the .png files is added to the MATLAB search path. You can use addpath to do the same.

1 year ago | 0

| accepted

Answered

Undefined function or variable 't_x'. The first assignment to a local variable determines its class.

Try initializing the variable t_x before assigning cur.x to it. t_x = zeros(len,1); t_x(t_count)=cur.x;

Undefined function or variable 't_x'. The first assignment to a local variable determines its class.

Try initializing the variable t_x before assigning cur.x to it. t_x = zeros(len,1); t_x(t_count)=cur.x;

1 year ago | 0

| accepted

Answered

Variables in workspace are not updated in Simulink when using Matlab function

Since you have used a single To Workspace block, only single variable phasediff is transferred to MATLAB workspace. In case you ...

Variables in workspace are not updated in Simulink when using Matlab function

Since you have used a single To Workspace block, only single variable phasediff is transferred to MATLAB workspace. In case you ...

1 year ago | 0

Answered

Can I calculate Sampling frequency from below information?

Your sampling period T= (450e-9)/ N and hence the sampling frequency is 1/T.

Can I calculate Sampling frequency from below information?

Your sampling period T= (450e-9)/ N and hence the sampling frequency is 1/T.

1 year ago | 0

Answered

fit function in Matlab 2020

poly is not a valid input argument for the fit function. Try using poly1 or poly2 for linear and quadratic fit respectively. For...

fit function in Matlab 2020

poly is not a valid input argument for the fit function. Try using poly1 or poly2 for linear and quadratic fit respectively. For...

1 year ago | 0

Answered

MATLAB Live Script Editor Change Font

Changing the font name and style is not supported in Live Editor. You can change the font size using Ctrl + Plus (+) and Ctrl + ...

MATLAB Live Script Editor Change Font

Changing the font name and style is not supported in Live Editor. You can change the font size using Ctrl + Plus (+) and Ctrl + ...

1 year ago | 1

Answered

Problem in converting to uint8()

uint8 can represent integers from 0 to 255. Make sure that elements are less than or equal to 255 to get the expected results.

Problem in converting to uint8()

uint8 can represent integers from 0 to 255. Make sure that elements are less than or equal to 255 to get the expected results.

1 year ago | 0

| accepted

Answered

HDL Workflow Advisor: Error: Math function square is not supported for HDL code generation

You can generate HDL for square block in Native Floating Point mode and this can be done by changing Configuration Parameters --...

HDL Workflow Advisor: Error: Math function square is not supported for HDL code generation

You can generate HDL for square block in Native Floating Point mode and this can be done by changing Configuration Parameters --...

1 year ago | 0

Answered

Simulink error - Unrecognized funtion t

In case you have external inputs coming in through inport block, make sure you enter valid parameters in Configuration Parameter...

Simulink error - Unrecognized funtion t

In case you have external inputs coming in through inport block, make sure you enter valid parameters in Configuration Parameter...

1 year ago | 1

Answered

I cant open matlab Design App

This issue can be resolved by shutting down and then restarting your computer, followed by launching MATLAB as administrator.Als...

I cant open matlab Design App

This issue can be resolved by shutting down and then restarting your computer, followed by launching MATLAB as administrator.Als...

1 year ago | 0

Answered

1-D Lookup Table- Output Formatting

From my understanding you are trying to sort the 1-D Lookup Table Output in the increasing order. In order to perform this you ...

1-D Lookup Table- Output Formatting

From my understanding you are trying to sort the 1-D Lookup Table Output in the increasing order. In order to perform this you ...

1 year ago | 0

Answered

I cant open simulink, just show loading

Try to follow the steps mentioned in the link below. https://www.mathworks.com/matlabcentral/answers/385283-why-does-opening-si...

I cant open simulink, just show loading

Try to follow the steps mentioned in the link below. https://www.mathworks.com/matlabcentral/answers/385283-why-does-opening-si...

1 year ago | 0

Answered

Power spectral density of a under sampled signal

Increase the sampling frequency of the signal to get expected results. When a signal is undersampled , aliasing happens and hen...

Power spectral density of a under sampled signal

Increase the sampling frequency of the signal to get expected results. When a signal is undersampled , aliasing happens and hen...

1 year ago | 0

Answered

Counting up to the reference value

You can use simulink to design this counter. Use a switch block to toggle between up counting and down counting. In order to giv...

Counting up to the reference value

You can use simulink to design this counter. Use a switch block to toggle between up counting and down counting. In order to giv...

1 year ago | 0

Answered

How I can generate a signal of 20 kbps and bandwidth of 25 KHz?

You can generate the signal with datarate of 20kbps by setting the Sample time to 1/20e3 and you can set the samples per frame t...

How I can generate a signal of 20 kbps and bandwidth of 25 KHz?

You can generate the signal with datarate of 20kbps by setting the Sample time to 1/20e3 and you can set the samples per frame t...

1 year ago | 0

Answered

How to step through a discrete model simulation one step at a time

sim function doesn't support onetime step simulation as of now. I have brought this issue to the concerned people and it might b...

How to step through a discrete model simulation one step at a time

sim function doesn't support onetime step simulation as of now. I have brought this issue to the concerned people and it might b...

1 year ago | 1

| accepted

Answered

combining three matrices with different values to arrange one row after the other in the result matrix

You can try the following A=[1,2,3;4,5,6;7,8,9]; B=[1,2,1;1,3,1;1,4,1]; C=[2,2,2;3,3,3;4,4,4]; Result=[]; for i=1:3 Re...

combining three matrices with different values to arrange one row after the other in the result matrix

You can try the following A=[1,2,3;4,5,6;7,8,9]; B=[1,2,1;1,3,1;1,4,1]; C=[2,2,2;3,3,3;4,4,4]; Result=[]; for i=1:3 Re...

1 year ago | 0

Answered

mcc error with uisetcolor on macos catalina

Try using the following mcc -m test1.m

mcc error with uisetcolor on macos catalina

Try using the following mcc -m test1.m

1 year ago | 0

Answered

Constellation not visisble after DUC?

Digital Up-Converter block converts a complex digital baseband signal to a real passband signal. Since the output of DUC block i...

Constellation not visisble after DUC?

Digital Up-Converter block converts a complex digital baseband signal to a real passband signal. Since the output of DUC block i...

1 year ago | 0

Answered

Plot the real and imaginary part of FRF vs Frequency using freqresp(system, w)?

You are getting error because you have defined state space model "System" and you are trying to use "system" with the function f...

Plot the real and imaginary part of FRF vs Frequency using freqresp(system, w)?

You are getting error because you have defined state space model "System" and you are trying to use "system" with the function f...

1 year ago | 0

Answered

how to write this equation (kindly help)

Refer to the link below https://www.mathworks.com/help/symbolic/piecewise.html#bu_gxjo-1

how to write this equation (kindly help)

Refer to the link below https://www.mathworks.com/help/symbolic/piecewise.html#bu_gxjo-1

1 year ago | 0

Answered

How can I fix it if an error occurs when compiling in the Simulink "matlab has encountered an internal problem and needs to close"?

Refer to the following link https://www.mathworks.com/matlabcentral/answers/261366-why-does-matlab-crash-with-matlab-has-encoun...

How can I fix it if an error occurs when compiling in the Simulink "matlab has encountered an internal problem and needs to close"?

Refer to the following link https://www.mathworks.com/matlabcentral/answers/261366-why-does-matlab-crash-with-matlab-has-encoun...

1 year ago | 0

Answered

How to recreate graphs of a nonlinear system of ODEs with a condition containing the right hand side limit.

You can refer to the link below https://www.mathworks.com/matlabcentral/answers/384298-how-to-solve-and-plot-system-of-nonlinea...

How to recreate graphs of a nonlinear system of ODEs with a condition containing the right hand side limit.

You can refer to the link below https://www.mathworks.com/matlabcentral/answers/384298-how-to-solve-and-plot-system-of-nonlinea...

1 year ago | 0

Answered

Correlation Coefficient through time

You are trying to access rand2_1([20 21]) in the for loop when t=20 but size of rand2_1 is only 1x20

Correlation Coefficient through time

You are trying to access rand2_1([20 21]) in the for loop when t=20 but size of rand2_1 is only 1x20

1 year ago | 0

Answered

How can I calculate the area between this two curves from McCabe-Thiele c

You can refer to the following link https://www.mathworks.com/matlabcentral/answers/302535-how-can-i-calculate-the-area-between...

How can I calculate the area between this two curves from McCabe-Thiele c

You can refer to the following link https://www.mathworks.com/matlabcentral/answers/302535-how-can-i-calculate-the-area-between...

1 year ago | 0

Answered

Animation plot with parameter

You can use animatedline to update the graph as per the required parameter. Below is the code that updates the graph with the pa...

Animation plot with parameter

You can use animatedline to update the graph as per the required parameter. Below is the code that updates the graph with the pa...

1 year ago | 0

| accepted

Answered

beginners question on I/O

I see you are using MATLAB R2018b but the function readmatrix is available from 2019a. Update to R2019a or R2019b to access the ...

beginners question on I/O

I see you are using MATLAB R2018b but the function readmatrix is available from 2019a. Update to R2019a or R2019b to access the ...

1 year ago | 0