Answered
how to add stateflow event listener?
Hello @Ajay krishna Vasanthakumar, A Stateflow chart can include data, event, and message type symbols. Events can be created ...

ungefär 2 månader ago | 0

Answered
Entity Output Switch changes results based on output label
Hello @Ben Freedman, The First port that is not blocked switching criterion indeed causes the Entity Output Switch to select t...

ungefär 2 månader ago | 0

Answered
How to extract geometric information of discrete geometry faces (working with STL files in PDE Toolbox)?
Hi @Michael Vladimirov, The PDE toolbox offers the findNodes function to extract node indices corresponding to specific faces,...

ungefär 2 månader ago | 0

Answered
Data was read before writing to - StateFlow transition
Hey @LostControl, The falling(p) transition condition compares the previous and current values of the variable p to return a B...

ungefär 2 månader ago | 0

Answered
Simulation stops after processing one reference entity by Entity Selector when the number of entities to select is greater than 1.
Hey @Ashok Samalam, The Match Entities Based on Attributes example demonstrates matching two entities, Frames and Wheels, base...

ungefär 2 månader ago | 0

Answered
How to set a new waypoint after reaching the previous one in a Simulink flight simulation
Hello Benjamin, Waypoint switching logic can be manually constructed by storing waypoints in a matrix or table and indexing th...

ungefär 2 månader ago | 0

Answered
Why Do digitalFilter Object Functions Ignore the Filter's SampleRate Property?
Hi John, The ability to specify sample rates in the freqz or impz functions, can be useful for visualizing how the response wo...

ungefär 2 månader ago | 0

Answered
Help for Vortex Lattice Method
Hi @Mert, The issue appears to be in the calculation of the 'G' and 'C' matrices within the 'Panel' function. The values of ...

3 månader ago | 0

| accepted

Answered
How can I have a proper LaTex compilation of a svg format Matlab plot?
Hey @JORGE SANZ SERRANO, I encountered a similar issue when using SVGs with LaTeX. It seems that the SVG file created by MAT...

3 månader ago | 1

Answered
Cannot find RoadRunner installation
Hey @Rong, The presence of the 'RoadRunner' icon in the 'Apps' tab indicates that the RoadRunner standalone application is i...

3 månader ago | 0

Answered
How can I link the hydraulic model to the mechanical model?
Hey @Zeko Zain, The 'Single-Acting Hydraulic Cylinder' block features 4 ports, each with a specific role: R: Connects the cy...

3 månader ago | 0

Answered
Integrating six simulink model
Hey @Divyashree, It seems the output files from each process might not be in data types supported by Simulink. If that's the c...

3 månader ago | 0

| accepted

Answered
Is there an example of a technical system model in Simscape with a PID controller and an LQR controller?
Hi @Alex Milns, The‘lqr’command in the Control System Toolbox is used to design a linear quadratic controller in MATLAB. Howev...

3 månader ago | 0

| accepted

Answered
Nonlinear MPC hard constraints
Hey @Tristan, In the Model Predictive Control Toolbox, the default implementation of MPC uses slack variables to handle constr...

3 månader ago | 0

Answered
Benefit of non-virtual output port vs. virtual output port in codegen
Hey @John, The discrepancy in output when using a non-virtual 'Outport' with a 'Merge' block, as described in the below page, ...

3 månader ago | 0

Answered
Control barrier functions basic example in 1d
Hey @Hortencia Alejandra Ramírez Vázquez, From the equations mentioned in the query, it seems the condition for the system is ...

3 månader ago | 0

| accepted

Answered
imagesc pixels unaligned with x axis for certain data sizes
Hey @Charlie Black, I could replicate the issue in R2021a but not in R2021b. Just a heads up, my current system runs Windows 1...

3 månader ago | 1

Answered
How to apply IF statement to entity attribute
Hey @Camelia Bidi, From the attached screenshot, it looks like two different entity types, 'Attacker' and 'Legitimate', are be...

3 månader ago | 0

Answered
What does the 'Information' attribute of the factor 'factorPoseSE3Prior' mean in the factor graph?
Hey @Cao, The factorPoseSE3Prior object in MATLAB is a specialized factor used in a factorGraph to represent a full-state prior...

3 månader ago | 0

| accepted

Answered
How can an entity in a process simulation that stays in the system after the simulation time is over move on?
Hey @inori, From what I understand, a SimEvents simulation is being run, and some entities haven't reached the terminal state...

3 månader ago | 0

Answered
How to read muxed sensor value array from StateFlow?
Hey @Jingzhe Xue, I comprehend that the Goto and From blocks are being used to send a mux signal from Simulink into a Stateflo...

3 månader ago | 0

Answered
Simulate GPS IMU With Quadcopter Swarm?
Hi @Kal Rus, The process of incorporating sensors depends on whether the model is developed in MATLAB or Simulink. For models i...

3 månader ago | 0

Answered
Why does R2024b force my signals to be [1x1] vectors instead of scalars like they were in R2022a?
Hey @Richard Lavery, The distinction between scalar signals and 1x1 vector signals in the Signal Dimensions information overla...

3 månader ago | 1

| accepted

Answered
Delay - Initial conditions config.
Hey @JuanMa, The Delay block can be used to delay the input signal by a specific number of samples. The output during the in...

3 månader ago | 0

Answered
Can not save enumeration created by Stateflow
Hey @Andy, Stateflow does not have a direct feature to output the enumeration definition. here's a workaround that might be us...

3 månader ago | 0

Answered
How would I set up a my Simulink systems to examine step and bode response?
Hey @Kez, The Model Linearizer app allows for linear analysis of nonlinear Simulink models. Using the app one can perform the ...

3 månader ago | 0

Answered
How to create a bus copy in code generation using embedded coder ?
Hey @Afraa Ibtissem Derbal, There are a couple of ways element-by-element copy of a bus signal can be achieved in code generat...

4 månader ago | 0

Answered
I have created my own J2 Orbit Propagator and I am not sure why it is not working properly.
Hey @Ryan Goodridge, Debugging is tricky without knowing the source of the 'Orbit Perturbation' equations mentioned in the code...

4 månader ago | 0

| accepted

Answered
State feedback in Simulink for code generation
Hey @Daniel Varga, The Control System Designer app is useful for designing single-input, single-output (SISO) controllers for ...

4 månader ago | 0

Answered
an issue in Task 4 of the "Exploring the Custom Battery Pack Block" exercise
Hey @Nuno, According to a staff member's statement in the MATLAB Answers query linked here, this is an issue in the "Battery Pa...

4 månader ago | 1

Load more