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 169 of 208 Ask a Question
how to choose LQR
tesem · Dec 16, 2020 · matlab , ,matlab coder , simulations

 i am trying to use LQR controller i simulate my system and have my A and B matrix ,, used theme in m-file and use the lqr function to control this system,,, is there any way to k…

Why does the RLOCUS plot curve incorrectly in MATLAB?
brushly · Dec 16, 2020 · matlab , ,matlab coder , control system , RLOCUS plot curve

The following lines of code reproduce the problem: % % rlocus(tf([0 0.21502754557159 -1.05214115726566 2.05983895370513 -2.01687625836747 0.98766449211981 -0.19351354903461], [1 -6…

Euler method with state space model
trastri · Dec 16, 2020 · matlab , ,matlab coder , control system

Im trying solve an equation in form of a state space model with Eulers (forward) method. My input u is a vector of accelerations that I have given on discrete points (ax). As outpu…

Rearrange state space system
tripti · Dec 16, 2020 · matlab , ,matlab coder , control system

I've modelled a system in simulink and used operspec and linearise to extract a state space system. While the activity has worked well, I have a downstream process which requires t…

Subscripting into an mxArray
tanneer · Dec 15, 2020 · matlab , ,matlab coder , C equivalent

given below is a part of the code i am writing for kalman filter but got error while converting from .m to .c/.c++   white_gauss=wgn(1,37000,20); q1=cov(white_gauss); q2=cov(white…

Matlab Home. Possible to get the coders?
frinchflips · Dec 15, 2020 · matlab , ,matlab coder , simulations

Hi Guys, I have tried contacting sales but it looks like they don't answer questions about Student or Home edition! I am looking to get MatLab as a home user in order to learn MatL…

My loop returns imaginary results!
tavneesh · Dec 15, 2020 · matlab , ,matlab coder ,

I write this simple code in a loop, and I obtain unwabted imaginary results. Could you please tell me where my mistake is:   SO = 0.5 .* ones(10,1); A(1,:) = 5.02 * (16.6 / 42) ^ …

How to write data to text file on raspberry pi using matlab
resh · Dec 15, 2020 · matlab , ,matlab coder , simulations

Hello everyone, I'm making a project with Raspberry pi and Matlab , I successfully to generate the code to Raspberry Pi and make it run standalone. Now I want this application can …

Get a Free Consultation or a Sample Assignment Review!