MATLAB QUESTIONS & EXPERT ANSWERS

Ask an expert. Trust the answer.
Your academic and career questions answered by verified experts.

Illustration
Cannot compute Riccati solution for LQI controller
Costa - 2021-10-04

This is my code right now:   u=0.5; v=0; omega=0; m=50; psi=0; c_d_Long=0.5; c_dr=0.6; c_d_Lat=1; rho=1000; L=1.2; W=0.275; H=0.416; I=38; A =[0, 0, ...

Simulink HDL Coder D-FF With Trigger that isn't clock
Israeli - 2021-09-30

Hello, im trying to build a D-FF using HDL Coder in Simulink without a clock trigger signal. The trigger signal I desire is generated outside the subs...

Connection between two PCs with Simulink
Cruz - 2021-09-30

I am doing a master degree project and it is based on Hardware-in-the-loop (HIL) to a quadrotor model. The difference between common projects I will n...

gpsSensor problem with Random Stream
Costa - 2021-09-30

Hi to everybody!   I have a big problem with my gpsSensor. In my model I need to use 2 gps: one for my boat and one for my buoy (target).   The two ...

How to modify the Names in Input and Output tabs of the FMU block from the Command Line/API?
trans_hnud - 2021-09-30

How to modify the Names in Input and Output tabs of the FMU block from the Command Line/API?  ...

Function 'fmincon' not supported for code generation
Albrecht - 2021-09-30

Hello,   im currently trying to implement nonlinear MPC in MATLAB/Simulink using the MATLAB function block. function u_mpc = MPC(x, u_mpc, u_0, A_ine...

How to get the file path inside a script, function, or model?
ramesh - 2021-09-30

How can I get the path of the script or function being executed or model being run from inside the file itself?  ...

Custom object class array initilization within Simulink Matlab Function Block
Michael - 2021-09-30

The summary of my question is I need know how to preallocate an array of custom objects in a way that is compatible with Simulink when using the Matla...

Amplitude of FFT is not correct
Vollmers - 2021-09-29

Hey there,   i want to calculate the power output of a 3 phase inverter. Therefore i have to do a FFT on my voltage Signals, to get the amplitude of ...

SimEvents - Setting Entity Attributes based on other entities
Marc_elpel - 2021-09-29

My app needs to assign an entity attribute in Entity1 based on an attribute value in Entity 2.   I can use a function GetAttribute to get a specific ...

Get a Free Consultation or a Sample Assignment Review!