Answered

Problem with simulating an AR(2) process

Hello Ferry, The reason for mismatch in the outputs is due to the misordering in the following equation: y(t, :) = rhho2 * [1;...

Problem with simulating an AR(2) process

Hello Ferry, The reason for mismatch in the outputs is due to the misordering in the following equation: y(t, :) = rhho2 * [1;...

3 months ago | 1

Answered

make a serie of repeating elements

Hello Mohammad, In order to automate the task of connecting large number of elements in Simulink you could leverage 'Programmat...

make a serie of repeating elements

Hello Mohammad, In order to automate the task of connecting large number of elements in Simulink you could leverage 'Programmat...

3 months ago | 0

| accepted

Answered

Modeling of track traffic light which works based on the Position of trains in Stateflow

Hi, You could write a function similar to 'FuncBusySection1' to know the position of both the trains at the same time. The func...

Modeling of track traffic light which works based on the Position of trains in Stateflow

Hi, You could write a function similar to 'FuncBusySection1' to know the position of both the trains at the same time. The func...

3 months ago | 0

| accepted

Answered

Chart Execution by Using Temporal Logic

Hello Paul, The generated code for a stateflow chart which has one of the conditions for state transitions as either 'after(n,t...

Chart Execution by Using Temporal Logic

Hello Paul, The generated code for a stateflow chart which has one of the conditions for state transitions as either 'after(n,t...

5 months ago | 0

Answered

Appdesigner - Appearance of second window similar to uialert

Hello Kevin, A possible workaround might be to design the dialog app using 'dialog' function instead of developing a MATLAB App...

Appdesigner - Appearance of second window similar to uialert

Hello Kevin, A possible workaround might be to design the dialog app using 'dialog' function instead of developing a MATLAB App...

5 months ago | 0

Answered

I I I I

Hello Garab, The following answer from the community might be of relevance to you: How can I show Matlab Simulink Data in Matl...

I I I I

Hello Garab, The following answer from the community might be of relevance to you: How can I show Matlab Simulink Data in Matl...

5 months ago | 0

Answered

How to read audio on app designer from simulink

Hello, One of the possible solutions is to use 'sim' command to simulate the Simulink model from the MATLAB App (as you have us...

How to read audio on app designer from simulink

Hello, One of the possible solutions is to use 'sim' command to simulate the Simulink model from the MATLAB App (as you have us...

5 months ago | 0

Answered

How do I vary the colour of a continuous graph in App Designer

Hi, You could use 'hold(app.UIAxes_Error, 'on')' version of hold command to plot data on top of data which is already plotted o...

How do I vary the colour of a continuous graph in App Designer

Hi, You could use 'hold(app.UIAxes_Error, 'on')' version of hold command to plot data on top of data which is already plotted o...

5 months ago | 0

| accepted

Answered

How do I collect lots of data from Simulink to MatLab Workspace with To Workspace block?

Hello KatÃ©ri Tremblay, One of the possible solutions is to use 'Output' blocks and log the outputs into workspace variables thr...

How do I collect lots of data from Simulink to MatLab Workspace with To Workspace block?

Hello KatÃ©ri Tremblay, One of the possible solutions is to use 'Output' blocks and log the outputs into workspace variables thr...

5 months ago | 0

Answered

How can I model the waiting time in Simulink?

Hello Min, You could make use of 'Enabled subsystem' for modelling waiting time. The following example illustrates the idea: ...

How can I model the waiting time in Simulink?

Hello Min, You could make use of 'Enabled subsystem' for modelling waiting time. The following example illustrates the idea: ...

5 months ago | 0

Answered

Simulink scope issue with data not showing

Hello Salah, You could try unchecking 'Limit data points to last' option in the configuration parameters of the Scope block sin...

Simulink scope issue with data not showing

Hello Salah, You could try unchecking 'Limit data points to last' option in the configuration parameters of the Scope block sin...

5 months ago | 0

Answered

Simulink subsystem to numerically solve a complex exponential function

Hello Ario, You could follow the following steps to solve the issue: 1) Create a '.m' file containing the function (for exampl...

Simulink subsystem to numerically solve a complex exponential function

Hello Ario, You could follow the following steps to solve the issue: 1) Create a '.m' file containing the function (for exampl...

5 months ago | 0

Answered

Export Matlab function block to referenced file

Hello Steffen, I understand that the requirement here is to have a MATLAB function saved in a '.m' file and also exploit the ad...

Export Matlab function block to referenced file

Hello Steffen, I understand that the requirement here is to have a MATLAB function saved in a '.m' file and also exploit the ad...

5 months ago | 0

Answered

Creating error/warning message in Simulink

Hello Ege, You could use 'Assertion' Simulink block to create errors/ warnings when a certain condition is not met. You can hav...

Creating error/warning message in Simulink

Hello Ege, You could use 'Assertion' Simulink block to create errors/ warnings when a certain condition is not met. You can hav...

5 months ago | 0

Answered

Save and plot the Simout from simulink for every iteration of For loop applied in MATLAB

Hello Mayur, For storing output of simout at each iteration, you could create a 2D array and use 'i' as index to write data int...

Save and plot the Simout from simulink for every iteration of For loop applied in MATLAB

Hello Mayur, For storing output of simout at each iteration, you could create a 2D array and use 'i' as index to write data int...

5 months ago | 0

Answered

Stateflow Onramp - Functions in Stateflow 9.3 - Matlab functions - Bug ? Error: Illegal use of reserved keyword "end".

Hello Soufiane, As explained in the Section 9.1 of Stateflow Onramp, the syntax of a MATLAB function within stateflow doesn't i...

Stateflow Onramp - Functions in Stateflow 9.3 - Matlab functions - Bug ? Error: Illegal use of reserved keyword "end".

Hello Soufiane, As explained in the Section 9.1 of Stateflow Onramp, the syntax of a MATLAB function within stateflow doesn't i...

5 months ago | 1

Answered

How to integrate ODE45 solver in state flow?

Hello Amardeep, I understand that the issue is with solving a system of differential equations within stateflow. One workaround...

How to integrate ODE45 solver in state flow?

Hello Amardeep, I understand that the issue is with solving a system of differential equations within stateflow. One workaround...

5 months ago | 0

Answered

Exponential law transition in Stateflow

Hello Olivier, You could have a look at the Markov Chain Model of Radar Detector example to understand about designing non-dete...

Exponential law transition in Stateflow

Hello Olivier, You could have a look at the Markov Chain Model of Radar Detector example to understand about designing non-dete...

5 months ago | 0

Answered

Why does one of my states in my Stateflow chart have a bold ouline and a darker interior?

Hello Richard, One of the states within stateflow chart is denoted by a bold outline to indicate that it's currently the active...

Why does one of my states in my Stateflow chart have a bold ouline and a darker interior?

Hello Richard, One of the states within stateflow chart is denoted by a bold outline to indicate that it's currently the active...

5 months ago | 0

Answered

Substituition of moving maximum block dsp tool

Hello Palma, One alternative might be to use MATLAB Function block within Simulink to implement the functionality of Moving max...

Substituition of moving maximum block dsp tool

Hello Palma, One alternative might be to use MATLAB Function block within Simulink to implement the functionality of Moving max...

5 months ago | 0

Answered

How to update app's text field continously using Simulink with Stateflow.

Hi Damian, I understand that the issue is with establishing proper data transfer between MATLAB App, Stateflow & Simulink. 1) ...

How to update app's text field continously using Simulink with Stateflow.

Hi Damian, I understand that the issue is with establishing proper data transfer between MATLAB App, Stateflow & Simulink. 1) ...

5 months ago | 0

Answered

Pressing a button in MATLAB app designer which changes a value of a variable in stateflow

Hello Tb, I understand that the issue here is with changing the data within stateflow by an action made through app (like butto...

Pressing a button in MATLAB app designer which changes a value of a variable in stateflow

Hello Tb, I understand that the issue here is with changing the data within stateflow by an action made through app (like butto...

5 months ago | 0

Answered

Get two sinusoidal signals from qammod result

Hi Rodrigo, The 'qammod' function gives complex valued output corresponding the modulated signal. You could use imag and real f...

Get two sinusoidal signals from qammod result

Hi Rodrigo, The 'qammod' function gives complex valued output corresponding the modulated signal. You could use imag and real f...

5 months ago | 0

Answered

How to protect paramaters in look-up table in Simulink?

Hi Ozan, I understand that the issue is with protecting the parameters of the Look-up Table while code generation from the prot...

How to protect paramaters in look-up table in Simulink?

Hi Ozan, I understand that the issue is with protecting the parameters of the Look-up Table while code generation from the prot...

5 months ago | 0

| accepted

Answered

Can I ask how to change the border color of NumericEditField in MATLAB App designer

Hello Han, The NumericEditField doesn't have any property for editing the border color. A possible workaround would be to encap...

Can I ask how to change the border color of NumericEditField in MATLAB App designer

Hello Han, The NumericEditField doesn't have any property for editing the border color. A possible workaround would be to encap...

5 months ago | 0

| accepted

Answered

Input signal varies in size, how to get previous values of signal?

Hello Phan, I understand that the issue faced is with delaying a variable sized signal using a unit delay block. You may refer ...

Input signal varies in size, how to get previous values of signal?

Hello Phan, I understand that the issue faced is with delaying a variable sized signal using a unit delay block. You may refer ...

5 months ago | 0

Answered

Change number of Ports on a Simulink Block

Hello John, You could have a look at Dynamic masked subsystems documentation. There is an example on varying number of input po...

Change number of Ports on a Simulink Block

Hello John, You could have a look at Dynamic masked subsystems documentation. There is an example on varying number of input po...

5 months ago | 0

Answered

Simulate a solar system

Hello Jesus, I understand that the issue faced here is that the simulation depicts only one planet at a time but the requiremen...

Simulate a solar system

Hello Jesus, I understand that the issue faced here is that the simulation depicts only one planet at a time but the requiremen...

5 months ago | 0

Answered

app designer UI Table with calculation ability

Hi Liu, You could leverage the "CellEditCallback" callback function of the uitable to add functionalities to any cell of the ui...

app designer UI Table with calculation ability

Hi Liu, You could leverage the "CellEditCallback" callback function of the uitable to add functionalities to any cell of the ui...

6 months ago | 0

Answered

Is there a way to use "SizeChangedFcn" with "Resize" and "AutoResizeChildren" properties on?

Hi Peter, Please follow the instructions in the following MATLAB Answers page: https://www.mathworks.com/matlabcentral/answer...

Is there a way to use "SizeChangedFcn" with "Resize" and "AutoResizeChildren" properties on?

Hi Peter, Please follow the instructions in the following MATLAB Answers page: https://www.mathworks.com/matlabcentral/answer...

6 months ago | 0