Answered
Latency not working when platform is the target
Hey @Carlos, I was facing the same issue with MATLAB R2024a, and I have been using a similar workaround. I have upgraded to MA...

1 year ago | 0

Answered
Drone Project Accelerometer/Gyroscope Implementation
Hey @Methmika, The 'IMU' block in Simulink, bundles the accelerometer, gyroscope, and magnetometer into one block. You can l...

1 year ago | 0

Answered
Adsorption process in Simulink
Hi @Ababacar Thiam, To switch between the two subsystems (adsorption and desorption) based on a control signal, the ‘Switch’...

1 year ago | 0

| accepted

Answered
g = decsg() multiple objects
Hi @Bastiaan, The unexpected result is due to the set formula being passed to the ‘decsg’ function. The attached example code...

1 year ago | 0

Answered
Trajectory of a 3d body
Hi Rakshit, In the code shared, I am assuming that 'theta' is the pitch angle of the projectile,'alpha' is the angle of attack,...

1 year ago | 0

| accepted

Answered
Input and State Constraints in MPC problem solved by quadprog
Hi Angelo, The following procedure can be used to convert the state constraints into input constraints. Consider the discret...

1 year ago | 0

Answered
Problem returning arrays from a C Caller in Simulink
Hi Julien, I comprehend that you are trying to obtain a time-varying output from a “C Caller” block. This can be achieved in ...

1 year ago | 0

| accepted

Answered
"Solver was unable to reduce the step size without violating the minimum step size value" in Simscape simulation
Hi David, The warning "Solver was unable to reduce the step size without violating the minimum step size value" could arise ...

1 year ago | 0

Answered
How do I track the centroid of a set of frames in simscape multibody?
Hey dst, I understand that your main objective is to create a frame in “Simscape Multibody” located at the centroid of few o...

1 year ago | 0

| accepted

Answered
How can I add an XYplot to Simulink Data Inspector programmatically ?
Hello Pavan, I comprehend that you are trying to plot XY data from MATLAB on the “Simulink Data Inspector”. There are couple of...

1 year ago | 1

Answered
How to get acceleration plot ? floor acceleration , driver acceleration
Hello Abdullah, From the shared screenshot I comprehend that the displacements of the floor and driver are available, and th...

1 year ago | 0

Answered
Error in Modeling and Simulation of an Autonomous Underwater Vehicle matlab exemple
Hello Samuel, I am able to replicate the error, “Error in port widths or dimensions” arising when running the “Modeling and...

1 year ago | 0

Answered
Configuring 2x2 Antenna Setup with 2 CSI-RS Ports in MATLAB's 5G Toolbox for CQI Reporting Test Compliance
Hi Jake, I understand that you are facing errors when trying CSI-RS and antenna panel configuration that are not mentioned in ...

1 year ago | 0

Answered
Coordinate system or axis system
Hey Sagar, I see that you are trying to create a body (a plane) in a 3D axis and then moving the body along a trajectory. Yo...

1 year ago | 0

Answered
There was a serious error in the calculation of the satellite position
Hello Ruizhe, From the code you have shared, I can comprehend that you are creating a satellite simulation using the “satelli...

1 year ago | 1

Answered
Expressions for QP matrices
Hello Elias, I understand that you are trying to use the “quadprog” function in the “Optimization Toolbox” to implement an MPC ...

1 year ago | 0