I work at MathWorks India Pvt Ltd

DISCLAIMER :

Any advice or opinions I post are of my own and in no way reflect that of the company.

Answered

Why is my signal builder not giving precise outputs?

This issue can be solved by using a signal editor block instead of signal builder block. The cause of the issue is because of in...

Why is my signal builder not giving precise outputs?

This issue can be solved by using a signal editor block instead of signal builder block. The cause of the issue is because of in...

9 months ago | 0

Answered

Linearization of Nonlinear modes from ode equation

Hello Niveditha, As for as I understood you need some guidance with respect to linearization of non-linear system. I have give...

Linearization of Nonlinear modes from ode equation

Hello Niveditha, As for as I understood you need some guidance with respect to linearization of non-linear system. I have give...

12 months ago | 0

| accepted

Answered

I am very new to matlab and am having syntax errors. Index in position 2 is invalid. Array indices must be positive integers or logical values. Error in tension (line 36) temp= (Be/N).*( log2( 1 + ( colony( j,d(len1)+r ).*(CG1)^2)/(sigma*Be)/N));

Hello siva, You have missed some ends. To remove the syntax errors try using the below code, but with respect to logic and var...

I am very new to matlab and am having syntax errors. Index in position 2 is invalid. Array indices must be positive integers or logical values. Error in tension (line 36) temp= (Be/N).*( log2( 1 + ( colony( j,d(len1)+r ).*(CG1)^2)/(sigma*Be)/N));

Hello siva, You have missed some ends. To remove the syntax errors try using the below code, but with respect to logic and var...

12 months ago | 0

| accepted

Answered

Discreter derivation in Simulink

Hello Nikhil, The "Sine" wave that you are sending to the derivative might be of from whose derivative will be .Hence try to s...

Discreter derivation in Simulink

Hello Nikhil, The "Sine" wave that you are sending to the derivative might be of from whose derivative will be .Hence try to s...

12 months ago | 0

Answered

command "integral(g,a,b)" is not working

Hello Jibrail, Refer the following link : https://in.mathworks.com/help/matlab/math/complex-line-integrals.html

command "integral(g,a,b)" is not working

Hello Jibrail, Refer the following link : https://in.mathworks.com/help/matlab/math/complex-line-integrals.html

12 months ago | 1

Answered

contourf nolinear y axis

Hello Kat, As far as I understood from the description, you have irregulary spaced Y ( assuming only Y is irregulary spaced an...

contourf nolinear y axis

Hello Kat, As far as I understood from the description, you have irregulary spaced Y ( assuming only Y is irregulary spaced an...

12 months ago | 0

Answered

Optimization running. Error running optimization. Undefined function 'Cost_minimization_function' for input arguments of type 'double'.

Hello Shamir, There is a mistake in the way you have implemented the 'ga' function . Change it to : [x, fval, exitFlag, Outpu...

Optimization running. Error running optimization. Undefined function 'Cost_minimization_function' for input arguments of type 'double'.

Hello Shamir, There is a mistake in the way you have implemented the 'ga' function . Change it to : [x, fval, exitFlag, Outpu...

12 months ago | 1

Answered

How to get as output the values of a parameter which change over time, but is not a derivative, in a function with an ODE system

Hello Sylvain, Can you try this once, after the execution of ode you will be having D(t) , S(t) over the specified tspan. Try c...

How to get as output the values of a parameter which change over time, but is not a derivative, in a function with an ODE system

Hello Sylvain, Can you try this once, after the execution of ode you will be having D(t) , S(t) over the specified tspan. Try c...

12 months ago | 1

| accepted

Answered

Linear programming for economic dispatch

Hello Divyesh, Use Quadprog instead of linear Prog. is the objective function convert it to form where , to find with res...

Linear programming for economic dispatch

Hello Divyesh, Use Quadprog instead of linear Prog. is the objective function convert it to form where , to find with res...

12 months ago | 0

Answered

Similar to Binary search, I need a Decomposition method like it is described below.

Hello, If you want idx to follow a particular flow you can directly give it as follows for idx = [8,4,12,2,6,10,14,1,3,4,7,...

Similar to Binary search, I need a Decomposition method like it is described below.

Hello, If you want idx to follow a particular flow you can directly give it as follows for idx = [8,4,12,2,6,10,14,1,3,4,7,...

12 months ago | 0

Answered

state-space and imp2ss

Hello Elie, Is K the impulse response of the model that you are working on. Can you provide the K and t values.

state-space and imp2ss

Hello Elie, Is K the impulse response of the model that you are working on. Can you provide the K and t values.

12 months ago | 0

Answered

Masking a variant subsystem using Label control

Hello , As far as I understood, you have a problem in implementing a variant subsystem. I have attached a simple model of impl...

Masking a variant subsystem using Label control

Hello , As far as I understood, you have a problem in implementing a variant subsystem. I have attached a simple model of impl...

12 months ago | 0

| accepted

Answered

optimization- profile for the optimized values

Hello Nivedhitha, Ga assumes very random intial values for the variables in the search space and moves towards optimility with...

optimization- profile for the optimized values

Hello Nivedhitha, Ga assumes very random intial values for the variables in the search space and moves towards optimility with...

12 months ago | 0

Answered

is there a way to get generalised code to take numerical inputs after a general solution is shown?

Hello Mayank, As far I understood from the problem statement, you want to calculate a matrix Tf which is a function of th2 d1 L...

is there a way to get generalised code to take numerical inputs after a general solution is shown?

Hello Mayank, As far I understood from the problem statement, you want to calculate a matrix Tf which is a function of th2 d1 L...

12 months ago | 0

Answered

interpolation surface no mesh

Hello, I think you can use interp2 function interp2(X,Y,Z,xq,yq) %interp2(X,Y,Z,0.5,0.8) Where xq,yq are the query points wh...

interpolation surface no mesh

Hello, I think you can use interp2 function interp2(X,Y,Z,xq,yq) %interp2(X,Y,Z,0.5,0.8) Where xq,yq are the query points wh...

12 months ago | 0

Answered

Why is the voltage results from Phasor simulation different from Continuous simulation?

Hello, The following 2 links will give you clear idea about phasor mode of simulation 1 . https://www.youtube.com/watch?v=Rv...

Why is the voltage results from Phasor simulation different from Continuous simulation?

Hello, The following 2 links will give you clear idea about phasor mode of simulation 1 . https://www.youtube.com/watch?v=Rv...

12 months ago | 0

| accepted

Answered

How to multiply matrices with variables as elements

Hello, Based on the problem description you are trying to minimize the time taken to reach a particular set point ( cost funct...

How to multiply matrices with variables as elements

Hello, Based on the problem description you are trying to minimize the time taken to reach a particular set point ( cost funct...

12 months ago | 0

| accepted

Answered

How to input values from workspace to PV array Block?

Hello Jack , From the question I understood that you are changing the "Module" in the "Module data" of the PV array to unser de...

How to input values from workspace to PV array Block?

Hello Jack , From the question I understood that you are changing the "Module" in the "Module data" of the PV array to unser de...

12 months ago | 0

Answered

Using maximum of optimisation variable as an upper bound for another variable

Hello Micheal, Based on the question, I understood the problem in this way , please correct me if am wrong : "You want to min...

Using maximum of optimisation variable as an upper bound for another variable

Hello Micheal, Based on the question, I understood the problem in this way , please correct me if am wrong : "You want to min...

12 months ago | 0

Answered

Uploading a Arbitary waveform to DS345 function generator

Hello Rashid , I think there might an issue while communicating with the instruments. Make sure that you have downloaded the r...

Uploading a Arbitary waveform to DS345 function generator

Hello Rashid , I think there might an issue while communicating with the instruments. Make sure that you have downloaded the r...

12 months ago | 0