Answered

How to make this loop faster?

Is it possible to enter vectors as arguments in the function Obstaculo and get a vector as result? If so, then you could try rep...

How to make this loop faster?

Is it possible to enter vectors as arguments in the function Obstaculo and get a vector as result? If so, then you could try rep...

2 years ago | 0

Answered

how can i get the Parametres of this modele ?

The following links explain the model and where those parameters are defined: This entry contains files accompanying the MATL...

how can i get the Parametres of this modele ?

The following links explain the model and where those parameters are defined: This entry contains files accompanying the MATL...

2 years ago | 1

| accepted

Answered

How can I solve system of nonlinear hyperbolic equations

Are you using the pdepe command? Solve System of PDEs - MATLAB & Simulink (mathworks.com) If so, would it make sense to defi...

How can I solve system of nonlinear hyperbolic equations

Are you using the pdepe command? Solve System of PDEs - MATLAB & Simulink (mathworks.com) If so, would it make sense to defi...

2 years ago | 0

| accepted

Answered

exponential growth equation in matlab

It will be difficult to help you by starting from scratch here. I can refer you this implementation of COVID-19 modeling so you ...

exponential growth equation in matlab

It will be difficult to help you by starting from scratch here. I can refer you this implementation of COVID-19 modeling so you ...

2 years ago | 0

Answered

Error while using array or vector in state chart.

I think fanID should be of size 1, since it is a scalar that will change its value (1 or 2) during the chart execution. By the ...

Error while using array or vector in state chart.

I think fanID should be of size 1, since it is a scalar that will change its value (1 or 2) during the chart execution. By the ...

2 years ago | 0

Answered

How do I configure enum in matlab?

Not sure about the exact issue you are having, but please have a look at the way to use Enumerations for, in this case, MATLAB F...

How do I configure enum in matlab?

Not sure about the exact issue you are having, but please have a look at the way to use Enumerations for, in this case, MATLAB F...

2 years ago | 0

Answered

How can I integrate a function?

You have defined 'f' as a function of x and N, but in the second for-loop and in the function 'integrate' you refer to 'f' with ...

How can I integrate a function?

You have defined 'f' as a function of x and N, but in the second for-loop and in the function 'integrate' you refer to 'f' with ...

2 years ago | 0

Answered

Increase number of legend entries in Simulink Scope

Hey, you can have several scopes in the Simulink Model.

Increase number of legend entries in Simulink Scope

Hey, you can have several scopes in the Simulink Model.

2 years ago | 0

| accepted

Answered

Saving to PC from Simulink

In the MATLAB home page look at the current folder, and take (copy) the files you created in there and paste them in the desired...

Saving to PC from Simulink

In the MATLAB home page look at the current folder, and take (copy) the files you created in there and paste them in the desired...

2 years ago | 0

| accepted

Answered

Issue with state flow generated code

One of the setting that might affect what you are describing is the setting of "Block reduction" and "Condition input branch exe...

Issue with state flow generated code

One of the setting that might affect what you are describing is the setting of "Block reduction" and "Condition input branch exe...

2 years ago | 0

| accepted

Answered

How to do this in Simulink?

Hi Avijit, In the command window, set values to the parameters Ka, Ta, Tw. Then, create the transfer functions by writing: s...

How to do this in Simulink?

Hi Avijit, In the command window, set values to the parameters Ka, Ta, Tw. Then, create the transfer functions by writing: s...

2 years ago | 0

Answered

error on my code?

Hi Fatima, You could try downloading an script from this link https://www.mathworks.com/matlabcentral/fileexchange/17483-routh...

error on my code?

Hi Fatima, You could try downloading an script from this link https://www.mathworks.com/matlabcentral/fileexchange/17483-routh...

2 years ago | 0

Answered

why Code generation with model reference initialize port is not working?

Hi Ranganatha and Samir, Please follow the steps discribed in the following link: https://www.mathworks.com/help/releases/R202...

why Code generation with model reference initialize port is not working?

Hi Ranganatha and Samir, Please follow the steps discribed in the following link: https://www.mathworks.com/help/releases/R202...

2 years ago | 1

Answered

SIL/PIL manager using script/program

Hi Gopal, Please visit the following link that shows ways to do the workflow you are looking for: https://www.mathworks.com/h...

SIL/PIL manager using script/program

Hi Gopal, Please visit the following link that shows ways to do the workflow you are looking for: https://www.mathworks.com/h...

2 years ago | 0

Answered

Plotting graph using scope

With a Scope block (form Library, section Sinks) you get a trend of a variable as function of time. If you use the XY Graph blo...

Plotting graph using scope

With a Scope block (form Library, section Sinks) you get a trend of a variable as function of time. If you use the XY Graph blo...

2 years ago | 1

| accepted

Answered

New to Matlab - need help with rearranging equation

Hi Philip, You are right with your approach. I'm afraid there is not explicit solution of this equation for 'q'.

New to Matlab - need help with rearranging equation

Hi Philip, You are right with your approach. I'm afraid there is not explicit solution of this equation for 'q'.

2 years ago | 0

Answered

Error in my function in my for loop

Try to define the size of T before using it. Also, make sure that the line of code [n,m] = size(X); is giving you the value of...

Error in my function in my for loop

Try to define the size of T before using it. Also, make sure that the line of code [n,m] = size(X); is giving you the value of...

2 years ago | 0

| accepted

Answered

Example of Execution Coverage

Execution coverage is the most basic form of coverage. For each item, execution coverage determines whether the item is executed...

Example of Execution Coverage

Execution coverage is the most basic form of coverage. For each item, execution coverage determines whether the item is executed...

2 years ago | 0

Answered

Set Simulink default configuration

Hi James, You can specify all model settings to a new model by creating a model template. Please check the following link for ...

Set Simulink default configuration

Hi James, You can specify all model settings to a new model by creating a model template. Please check the following link for ...

2 years ago | 0

| accepted

Answered

How to see the freq response of a transfer function ?

Hi Nabil, If that is the screenshot of your implementation, you need to include data source to your model. It seems you want t...

How to see the freq response of a transfer function ?

Hi Nabil, If that is the screenshot of your implementation, you need to include data source to your model. It seems you want t...

2 years ago | 1

Answered

what is optimal option when creating test harness to verify mathematical models ?

Not sure what you mean with "verify mathematical models". Please have a look at the foolowing link (and the references therein...

what is optimal option when creating test harness to verify mathematical models ?

Not sure what you mean with "verify mathematical models". Please have a look at the foolowing link (and the references therein...

2 years ago | 0

Answered

Why am I getting **Illegal use of reserved keyword "else"** in the following assessment block?

Try with Else. See some examples here: https://www.mathworks.com/help/sltest/ug/connecting-blocks-for-verify-statements.html

Why am I getting **Illegal use of reserved keyword "else"** in the following assessment block?

Try with Else. See some examples here: https://www.mathworks.com/help/sltest/ug/connecting-blocks-for-verify-statements.html

2 years ago | 0

| accepted

Answered

Asking for 'opening the project' when opening any model file (slx)

Hello, Please check if you have a .prj along with folder that are in the project path and contain those models. If you open any...

Asking for 'opening the project' when opening any model file (slx)

Hello, Please check if you have a .prj along with folder that are in the project path and contain those models. If you open any...

2 years ago | 0

Answered

Extremely slow compilation time in referenced model (Simulink)

Try running the top-level model in Accelerator or Rapid Accelerator mode. Here are a few tips when using the Accelerator and R...

Extremely slow compilation time in referenced model (Simulink)

Try running the top-level model in Accelerator or Rapid Accelerator mode. Here are a few tips when using the Accelerator and R...

2 years ago | 0

Answered

What is the best book to understand State flow ?

I'd recommend you to start with the MathWorks documentation, which includes a complete information and different examples using ...

What is the best book to understand State flow ?

I'd recommend you to start with the MathWorks documentation, which includes a complete information and different examples using ...

2 years ago | 0

Answered

Moving average in stateflow

Is it mandatory a Stateflow implementation? Otherwise, a simple way is to use a tapped Delay block to delay the incoming signal ...

Moving average in stateflow

Is it mandatory a Stateflow implementation? Otherwise, a simple way is to use a tapped Delay block to delay the incoming signal ...

2 years ago | 1

Answered

simulink is not opening

Could you please go to MathWorks webpage, click on Support, scroll down and go to Contact Support, so to get help if you are exp...

simulink is not opening

Could you please go to MathWorks webpage, click on Support, scroll down and go to Contact Support, so to get help if you are exp...

2 years ago | 0

Answered

How to create a variable input in Matlab R2020a Simulink?

Hi Pranav, Make sure you copied the equation correctly. Seems that 'a' and 'b' are parameters, and the input is missing. Please...

How to create a variable input in Matlab R2020a Simulink?

Hi Pranav, Make sure you copied the equation correctly. Seems that 'a' and 'b' are parameters, and the input is missing. Please...

2 years ago | 0

Answered

Difference between Matlab and Wolfram Alpha

Hi Niklas, You need to set 'ReturnConditions' to true to return any parameters in the solution and conditions on the solution...

Difference between Matlab and Wolfram Alpha

Hi Niklas, You need to set 'ReturnConditions' to true to return any parameters in the solution and conditions on the solution...

2 years ago | 0

| accepted