MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 98 of 208 Ask a Question
Cannot compute Riccati solution for LQI controller
Costa · Oct 4, 2021 · lqi , riccati solution

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, - v*cos(psi) - u*sin(psi), cos…

Simulink HDL Coder D-FF With Trigger that isn't clock
Israeli · Sep 30, 2021 · verilog , hdl , hdl coder. ,dff , clk , clock , trigger

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 subsystem and fed as an input to t…

Connection between two PCs with Simulink
Cruz · Sep 30, 2021 · hardware-in-the-loop , hil , two computers

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 not use a external hardware (li…

gpsSensor problem with Random Stream
Costa · Sep 30, 2021 · gps , sensors , Robotics and Autonomous Systems , Automated Driving Toolbox

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 GPS shares the same characteri…

Function 'fmincon' not supported for code generation
Albrecht · Sep 30, 2021 · fmincon , simulink , matlab

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_ineq, b_ineq, Q_mpc, R_mpc) costf…

Amplitude of FFT is not correct
Vollmers · Sep 29, 2021 · fft , amplitude , scaling , windowing

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 the fundamental.   In compari…

SimEvents - Setting Entity Attributes based on other entities
Marc_elpel · Sep 29, 2021 · assigning entity a... , matlab , simulink

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 attribute from Entity 1, but h…

Get a Free Consultation or a Sample Assignment Review!