Iam an intern at Mathworks.

Disclaimer: Any articles /ideas/opinions here are my own and in no way reflect that of Mathworks

답변 있음

How to plot arbitrary line slice against x or y axis in a table?

Hi Biswajit, You could use the VariableNames property of the table to get the column names which are actually the x axis data a...

How to plot arbitrary line slice against x or y axis in a table?

Hi Biswajit, You could use the VariableNames property of the table to get the column names which are actually the x axis data a...

3달 전 | 0

| 수락됨

답변 있음

How to sum according to specific ranges within same table?

Hi Hedi, You could load the excel file as a table. You could refer to this documentation page link for more details. The follow...

How to sum according to specific ranges within same table?

Hi Hedi, You could load the excel file as a table. You could refer to this documentation page link for more details. The follow...

3달 전 | 1

| 수락됨

답변 있음

Gauss-Seidel Method in Matlab

Hi Zhukun, You could use another vector y to store the values in the vector x and compare the updated x vector to the vector y ...

Gauss-Seidel Method in Matlab

Hi Zhukun, You could use another vector y to store the values in the vector x and compare the updated x vector to the vector y ...

3달 전 | 0

답변 있음

Add cartesian axes to polarscatter?

Hi Maximilian, You could try the following workaround: 1) You could make use of axes and polaraxes commands and their properti...

Add cartesian axes to polarscatter?

Hi Maximilian, You could try the following workaround: 1) You could make use of axes and polaraxes commands and their properti...

3달 전 | 0

| 수락됨

답변 있음

How can I plot 2 data in 1 graph and find common peak

Hi Phudit, You can refer to documentation of hold function to plot 2 different plots on same figure. To calculate the common pe...

How can I plot 2 data in 1 graph and find common peak

Hi Phudit, You can refer to documentation of hold function to plot 2 different plots on same figure. To calculate the common pe...

3달 전 | 0

| 수락됨

답변 있음

Simulink execution for plant transfer function

Hi Ketan, You can refer to the documentations of LTI system and Transfer Fcn blocks to generate the transfer functions. For t...

Simulink execution for plant transfer function

Hi Ketan, You can refer to the documentations of LTI system and Transfer Fcn blocks to generate the transfer functions. For t...

3달 전 | 0

답변 있음

How can I prevent update of x(i) at each step of the loop? Essentially, this is a code for Gauss Seidel. How do I modify it to make it Jacobi iterative method?

Hi Avinash, You could try assigning the values stored in x into another variable y at the start of the loop and use the y value...

How can I prevent update of x(i) at each step of the loop? Essentially, this is a code for Gauss Seidel. How do I modify it to make it Jacobi iterative method?

Hi Avinash, You could try assigning the values stored in x into another variable y at the start of the loop and use the y value...

3달 전 | 0

| 수락됨

답변 있음

Solve dispersion equation (8). I know h, d, ua and u. How can I solve such equation in matlab

Hi Vishal, You can declare beta as a symbolic variable and use solve function to solve the dispersion equation. You can refer t...

Solve dispersion equation (8). I know h, d, ua and u. How can I solve such equation in matlab

Hi Vishal, You can declare beta as a symbolic variable and use solve function to solve the dispersion equation. You can refer t...

3달 전 | 0

답변 있음

How to identify exact coordinates of a circle on geoshow?

Hi Eitvydas, A possible workaround is to use scxsc function to calculate the intersection of 2 circles of interest whose center...

How to identify exact coordinates of a circle on geoshow?

Hi Eitvydas, A possible workaround is to use scxsc function to calculate the intersection of 2 circles of interest whose center...

3달 전 | 0

답변 있음

Loop imagesc together for traffic simulation

Hi Anthony, You could look at the following code: rw = 11; rl = 40; road = zeros(rw,rl); xpos1 = 1; ypos1 = 3; xpos2 = ...

Loop imagesc together for traffic simulation

Hi Anthony, You could look at the following code: rw = 11; rl = 40; road = zeros(rw,rl); xpos1 = 1; ypos1 = 3; xpos2 = ...

3달 전 | 0

답변 있음

How do I create and square polynomial equations

Hi Karan, You could generate the equation of transfer function in MATLAB using tf command. You could also use feedback function...

How do I create and square polynomial equations

Hi Karan, You could generate the equation of transfer function in MATLAB using tf command. You could also use feedback function...

3달 전 | 0

답변 있음

How to read each value of a column and replace it with another value when a rule is met?

Hi Rebeca, You could use for loops and if conditions with proper boundary conditions as required to solve the problem. To speed...

How to read each value of a column and replace it with another value when a rule is met?

Hi Rebeca, You could use for loops and if conditions with proper boundary conditions as required to solve the problem. To speed...

3달 전 | 0

답변 있음

How to plot Mhz signal in simulink

Hi Bhavish, The possible issue might be the simulation time. Since the signal frequency is in the MHz range, you can reduce the...

How to plot Mhz signal in simulink

Hi Bhavish, The possible issue might be the simulation time. Since the signal frequency is in the MHz range, you can reduce the...

3달 전 | 0

답변 있음

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-2.

Hi Shaan, The error is due to the line 15 of the function Basic_Euler: w1i(1:neqn1,i+1) = x1; The size of x1 is getting chang...

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-2.

Hi Shaan, The error is due to the line 15 of the function Basic_Euler: w1i(1:neqn1,i+1) = x1; The size of x1 is getting chang...

3달 전 | 1

답변 있음

Simulink with AWGN channel

Hi Jozef, You can refer to the documentation of sine wave block in Simulink. It supports the parameters like amplitude, frequen...

Simulink with AWGN channel

Hi Jozef, You can refer to the documentation of sine wave block in Simulink. It supports the parameters like amplitude, frequen...

3달 전 | 0

답변 있음

How to solve SIR model with ode45?

You can refer to the following code: [t,dYdt] = odeOut; function [t,dYdt] = odeOut % time dependent window tRange = linsp...

How to solve SIR model with ode45?

You can refer to the following code: [t,dYdt] = odeOut; function [t,dYdt] = odeOut % time dependent window tRange = linsp...

3달 전 | 0

답변 있음

Creating a profile plot for a trajectory

Dynamic plots can be created in MATLAB in three different ways. You can refer to the Animation Techniques documentation page for...

Creating a profile plot for a trajectory

Dynamic plots can be created in MATLAB in three different ways. You can refer to the Animation Techniques documentation page for...

3달 전 | 0

답변 있음

ECG signal input to simulink.

You can use from workspace block or from file block to load the data present in MATLAB workspace into Simulink. The following bl...

ECG signal input to simulink.

You can use from workspace block or from file block to load the data present in MATLAB workspace into Simulink. The following bl...

3달 전 | 0

답변 있음

Signal Time Range-SIMULINK

You may try to solve using the following steps: 1) Use clock block to get the current simulation time. 2) Append a combination...

Signal Time Range-SIMULINK

You may try to solve using the following steps: 1) Use clock block to get the current simulation time. 2) Append a combination...

3달 전 | 0

답변 있음

How to create own binary signal in simulink ?

Using 'Signal builder' to generate binary signals might not work because the output of this block is of type 'double'. You may r...

How to create own binary signal in simulink ?

Using 'Signal builder' to generate binary signals might not work because the output of this block is of type 'double'. You may r...

3달 전 | 0

| 수락됨

답변 있음

Taking the median filter of two images

You can refer to the documentation of medfilt2 function which is a part of Image processing toolbox which performs median filter...

Taking the median filter of two images

You can refer to the documentation of medfilt2 function which is a part of Image processing toolbox which performs median filter...

3달 전 | 0

답변 있음

title for plot segments

I understand that you would like to have multiple titles to a plot corresponding to the firing rate of various segments of that ...

title for plot segments

I understand that you would like to have multiple titles to a plot corresponding to the firing rate of various segments of that ...

3달 전 | 0

답변 있음

the 'stepImpl' method of the System object 'Simulation3DActorRayTraceRead' returned a value that has data type 'double', which does not match the data type 'single' returned by the 'getOutputDataTypeImpl' method

There are multiple possible root causes for this issue. Please try the following troubleshooting steps to gather more informatio...

the 'stepImpl' method of the System object 'Simulation3DActorRayTraceRead' returned a value that has data type 'double', which does not match the data type 'single' returned by the 'getOutputDataTypeImpl' method

There are multiple possible root causes for this issue. Please try the following troubleshooting steps to gather more informatio...

3달 전 | 0

답변 있음

sawtooth wave modulation i want mean voltage will be change with respect to frequency

"i want to change mean voltage with respect to frequency" - Could you clearly elaborate on what should be the dependance of freq...

sawtooth wave modulation i want mean voltage will be change with respect to frequency

"i want to change mean voltage with respect to frequency" - Could you clearly elaborate on what should be the dependance of freq...

3달 전 | 0

답변 있음

How to get the -3dB Frequency value for a semilog plot ?

You may have to first find the index at which the gain is -3 dB (i.e., in Classeurl.g). Then the frequency can be found by calcu...

How to get the -3dB Frequency value for a semilog plot ?

You may have to first find the index at which the gain is -3 dB (i.e., in Classeurl.g). Then the frequency can be found by calcu...

3달 전 | 0

답변 있음

For loop on two different dimensions, nested for loop?

I assume that the requirement is to store the 2 outputs of ttest_bonf (i.e., H, P) into a cell array. In that case the variable ...

For loop on two different dimensions, nested for loop?

I assume that the requirement is to store the 2 outputs of ttest_bonf (i.e., H, P) into a cell array. In that case the variable ...

3달 전 | 0

| 수락됨