Answered

How to convert Block parameter to input port?

Hi Rahul, In general you could try to work with a MATLAB funcion block in the following way: where the MATLAB function has t...

How to convert Block parameter to input port?

Hi Rahul, In general you could try to work with a MATLAB funcion block in the following way: where the MATLAB function has t...

23 hours ago | 0

Answered

Regarding Transfer function blcok

Hi Nagasai, When you can say logic, it refers to include types of blocks such as AND / OR / NOT etc instead of your trasnfer fu...

Regarding Transfer function blcok

Hi Nagasai, When you can say logic, it refers to include types of blocks such as AND / OR / NOT etc instead of your trasnfer fu...

5 days ago | 0

| accepted

Answered

How to convert Block parameter to input port?

Hi Rahul, One possible simple solution would be to keep the Sine wave amplitud equal to 1, and then add the following to the bl...

How to convert Block parameter to input port?

Hi Rahul, One possible simple solution would be to keep the Sine wave amplitud equal to 1, and then add the following to the bl...

6 days ago | 0

Answered

Regarding Transfer function blcok

Hi Nagasai, A transfer function relates the process output ith its input, usually written in frequency domain, where the analys...

Regarding Transfer function blcok

Hi Nagasai, A transfer function relates the process output ith its input, usually written in frequency domain, where the analys...

6 days ago | 0

Answered

Solver and logging settings

Hi Siddhanta, If you want to simulate your model with a variable step solver and the model has a part that should work with a f...

Solver and logging settings

Hi Siddhanta, If you want to simulate your model with a variable step solver and the model has a part that should work with a f...

15 days ago | 0

Answered

Moving average filter cut-off frequency

Hi Mir Khadim, The cutoff frequency is defined as the frequency where the power gain is a half, also called as the −3 dB-point,...

Moving average filter cut-off frequency

Hi Mir Khadim, The cutoff frequency is defined as the frequency where the power gain is a half, also called as the −3 dB-point,...

15 days ago | 0

| accepted

Answered

Simulink model 'to workspace' output

Hi Mohsina, I see T_u matrix is loaded in you model using the From Workspace block. In this case each row of the matrix has tim...

Simulink model 'to workspace' output

Hi Mohsina, I see T_u matrix is loaded in you model using the From Workspace block. In this case each row of the matrix has tim...

1 month ago | 0

Answered

How to import a transfer function from workspace into simulink?

Hi Azam, One possible solution is: Create a transfer function in the workscape: for example, type in the command window F = t...

How to import a transfer function from workspace into simulink?

Hi Azam, One possible solution is: Create a transfer function in the workscape: for example, type in the command window F = t...

2 months ago | 0

Answered

Algebraic Loop in Simulink, missing datas

Hi, I see you have tried to introduce delays. Since you say it can only be solved in a loop (so it is not possible to solve the...

Algebraic Loop in Simulink, missing datas

Hi, I see you have tried to introduce delays. Since you say it can only be solved in a loop (so it is not possible to solve the...

3 months ago | 0

Answered

Simulink model takes lot of time to save

Hi Barghav, Please find below some recommendations you can find in the MathWorks documentation: Modifying and Simplifying Yo...

Simulink model takes lot of time to save

Hi Barghav, Please find below some recommendations you can find in the MathWorks documentation: Modifying and Simplifying Yo...

3 months ago | 0

Answered

Why model referencing slows down the simulation?

Hi Nicolas, By default, Simulink uses 'normal mode' to simulate a reference model. Normal model means that the model is simulat...

Why model referencing slows down the simulation?

Hi Nicolas, By default, Simulink uses 'normal mode' to simulate a reference model. Normal model means that the model is simulat...

3 months ago | 0

Answered

Solve system of equations give wrong solution

Hi Abdullah, When using vpasolve, try (if possible) to include a good guess of the solution (X0). The X0 is optional, if no val...

Solve system of equations give wrong solution

Hi Abdullah, When using vpasolve, try (if possible) to include a good guess of the solution (X0). The X0 is optional, if no val...

3 months ago | 0

| accepted

Answered

How to change the legend in simulation data inspector?

Hi Udhaya, Here I write you some possible solutions/suggestions to your questions: 1) The Simulink Data Inspector use as lege...

How to change the legend in simulation data inspector?

Hi Udhaya, Here I write you some possible solutions/suggestions to your questions: 1) The Simulink Data Inspector use as lege...

3 months ago | 0

Answered

Matlab Online no reconoce credenciales de mail de facultad. falta algun dato o permiso?

Hola Patricia, Por favor, ve al siguiente enlace: https://se.mathworks.com/support/contact_us.html y haz click en "Create Se...

Matlab Online no reconoce credenciales de mail de facultad. falta algun dato o permiso?

Hola Patricia, Por favor, ve al siguiente enlace: https://se.mathworks.com/support/contact_us.html y haz click en "Create Se...

3 months ago | 0

Answered

figure - plot, semilogx, loglog, ...

Hi Robin, Indeed, those codes give the same results. If you know in advance that your plot should have one or both axes in lo...

figure - plot, semilogx, loglog, ...

Hi Robin, Indeed, those codes give the same results. If you know in advance that your plot should have one or both axes in lo...

3 months ago | 0

Answered

fitting of a sinusoid

Hi Anik, Try to use the Piecewise Cubic Hermite Interpolating Polynomial (PCHIP) function. The function pchip does not include ...

fitting of a sinusoid

Hi Anik, Try to use the Piecewise Cubic Hermite Interpolating Polynomial (PCHIP) function. The function pchip does not include ...

3 months ago | 0

Answered

Algebric loop Error in a feedback

Hi Abhay, I share with you some content from documentation regarding algebraic loops: When a model contains an algebraic loop,...

Algebric loop Error in a feedback

Hi Abhay, I share with you some content from documentation regarding algebraic loops: When a model contains an algebraic loop,...

3 months ago | 0

Answered

How to join two line plots

Hi Ganesh, To find the extreme point of a set of points (x1,y1) you could try: [maxy1, indexy1] = max(y1); x1(indexy1); If ...

How to join two line plots

Hi Ganesh, To find the extreme point of a set of points (x1,y1) you could try: [maxy1, indexy1] = max(y1); x1(indexy1); If ...

4 months ago | 0

Answered

How to implement first order low pass filter in Matlab?

Hi Raja, Since your input has a delay, then the input can be expressed as, say u(t)=f(t-a), where a is the time delay you menti...

How to implement first order low pass filter in Matlab?

Hi Raja, Since your input has a delay, then the input can be expressed as, say u(t)=f(t-a), where a is the time delay you menti...

4 months ago | 0

| accepted

Solved

Cumulative product of a vector

Cumulative product of a vector example x=[1 2 5 10], then answer must be [ 1 2 10 100] *If you like this prob...

8 months ago

Solved

Extract a specific part of matrix!

In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

8 months ago

Solved

Rotate Matrix Depending on the input

Rotate matrix (CounterClockwise) via 90, 180 or -90 depending on the input Ex. a = [1 2 3; 4 5 6; 7 8 9] b = 90; ...

8 months ago

Solved

Create tangent function out of sine function only

Please don't use cosine and tangent functions

8 months ago

Solved

Create tangent function out of cosine only

Please don't use tangent and sine functions

8 months ago

Solved

What's size of TV?

Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

8 months ago

Answered

fsolve problem

You can try with the function solve. For example, to force getting real solutions: syms x eqn = x^5 == 3125; solve(eqn, x) %...

fsolve problem

You can try with the function solve. For example, to force getting real solutions: syms x eqn = x^5 == 3125; solve(eqn, x) %...

8 months ago | 0

Solved

Project Euler: Problem 5, Smallest multiple

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

8 months ago

Solved

Love triangles

Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

8 months ago