Answered
Simulink S-Function output ports with scope
If I understood the question, when you say "get the Output in Simulink again" would mean: you would like to save in a vector so ...

3 years ago | 0

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...

3 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...

3 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...

3 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 ...

3 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 ...

3 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...

3 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 ...

3 years ago | 0

Answered
Increase number of legend entries in Simulink Scope
Hey, you can have several scopes in the Simulink Model.

3 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...

3 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...

3 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...

3 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...

3 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...

3 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...

3 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...

3 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'.

3 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...

3 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...

3 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 ...

3 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...

3 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...

3 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

3 years ago | 0

| accepted

Answered
Simulink on Ramp Task 2
Seems OK from here, just click submit button .

3 years ago | 1

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...

3 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...

3 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 ...

3 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 ...

3 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...

3 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...

3 years ago | 0

Load more