Answered
lane keeping MPC system- Simulink
Hey @Adafner, The Lane Keeping Assist System Using Model Predictive Control includes several files. The getCurvature functio...

9 months ago | 0

Answered
Deadbeat control Space-State System
Hey @Pablo Graale, The idea of placing poles at the origin of the z-plane for designing a deadbeat controller is indeed correct...

9 months ago | 0

Answered
How to accumulate a collection of samples data in Simulink?
Hey @Harras Waince, To accumulate a signal in Simulink, the Buffer block can be utilized. For example, to accumulate 20 samples...

9 months ago | 0

Answered
How to access simulink arduino instance inside matlab function from stateflow?
Hey @Dominic Newman, The issue might be related to code generation when using arduino and writeDigitalPin within the MATLAB Fun...

9 months ago | 0

Answered
I get error for my code which uses SimEvents
Hey @Ian, It seems there might be some confusion regarding the library paths for the Entity Generator, Queue, Server, and Termi...

9 months ago | 0

Answered
Rename test harness on .mldatx simulink test file
Hey Felipe, The symbols in a test sequence can be modified if the name of the test harness is known. More information on this c...

9 months ago | 0

Answered
Simulink Test: Each Test Case in the Iteration prompts' Building Model 'before running
Hey @chaoran, The Simulink Test Manager provides the capability to create Real-Time Tests, with three options for specifying th...

9 months ago | 0

Answered
How do I plot spiral phase plate with staircase structure
Hey @ILY, To create a spiral phase plot with a staircase pattern, the floor function can be employed. Here's an example that tr...

9 months ago | 0

Answered
Im trying to plot the impulse and step responses and frequency response (magnitude and phase) of this system directly from the differential equation.
Hey @Andrew Roos, The impulse, step, and bode functions are useful for plotting the impulse response, step response, and Bode p...

9 months ago | 0

Answered
Unittesting Matlab System Block
Hey @Tim david, Since the stepImpl function is protected, creating an inherited subclass and using a class-based unit test can ...

9 months ago | 0

Answered
Specify parameters to be PrivateGlobals in Simulink Coder
Hey @Shamoil, The Code Mappings pane is a useful tool for adjusting the storage class of Simulink signals. If it isn't visible,...

9 months ago | 0

Answered
How to extract connections from architecture ports in a System Composer Mapping block
Hey @Andrea, The MappingBlock has its own architecture where the connectors are located. To access the three connectors within ...

10 months ago | 0

| accepted

Answered
Fit a linear equation to obtain coefficients (constants)
Hello, A linear model essentially fits a hyperplane, where each combination of independent variables is mapped to a single valu...

10 months ago | 0

Answered
How to make a fill for standard deviation around a polar plot?
Hi @Katherine Pham, The Patch object cannot be directly used as a child of the PolarAxes object. To achieve the desired effect,...

10 months ago | 0

Answered
i am getting error in stateflow -chart
Hello, The Symbols Pane helps in creating and managing symbols. To access the Symbols pane, navigate to the Modeling tab and se...

10 months ago | 0

Answered
accessIntervals Function: Subscripting into a Table Using One Subscript Error
Hi @Bara'ah, The following code executed in MATLAB Online without any errors: startTime = datetime(2024, 1, 6, 23, 23, 0); st...

10 months ago | 0

Answered
How to Programmatically Create S-function in Matlab r2023a
Hello @Sai Manohar, To generate an S-Function from a Simulink model or subsystem, the slbuild command can be utilized. It's nec...

10 months ago | 1

Answered
Can I import my own model to aerospace blockset?
Hello @Puriya, I assume, the word model in the query refers to a CAD model of the drone. In response to the query about the CAD...

10 months ago | 0

Answered
How to get height sensor and ground feedback when UAV Simulink and UE joint simulation
Hello, The following documentation provides describes the different sensors available for co-simulation with Unreal Engine: ht...

10 months ago | 0

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

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

10 months 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,...

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

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

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

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

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

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

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

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

11 months ago | 0

Load more