MATLAB QUESTIONS & EXPERT ANSWERS

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

Illustration
how to choose LQR?
Declan - 2020-11-23

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

How to Clear all Variables of a Workspace Except for Those Explicitly Excluded?
Travis - 2020-11-23

How do I clear all variables of a workspace except for those that I explicitly mention not to be cleared? In MATLAB...

How to estimate the inital state with an ssest output model?
Patrick - 2020-11-20

I am trying to linearize a model arround a certain operating point, the model is highly non linear so things like small angle approximation or Taylor-...

How to plot magnitude and phase spectrum of the function?
Emmanuel - 2020-11-20

Hye i really confuse on how much method to write the code to plot magnitude and phase. Below is my function. X(z)=z / (z-1)^2 Any idea how to start be...

I want to simulate with various input.
Timothy - 2020-11-20

sys = 1(1+s)   input = 1/s - exp(-2*s)/s   So, how can I get lsim output "sys*input" ?? I must make digital signal of input??...

Why do I get an incorrect step response plot from the Control System Designer?
Emmett - 2020-11-20

I am using the Control System Designer in MATLAB R2016b to plot the step response of my closed loop system. When I plot the step response of my transf...

How do I convert this into a 2d matrix of 50x50 in Matlab?
Remingtonsmith - 2020-11-19

(1,1) 0.4202 (2,1) 0.7436 (3,1) 1.7309 (4,1) 1.2414 (5,1) 1.4897 (6,1) 1.6088 (7,1) 3.1441 (8,1) 3.4509 (9,1) 4.1381 (10,1) 3.3498 (11,1) 4.3164 (12,1...

How to sort a matrix in a random order?
Evangeline - 2020-11-19

How to sort a matrix in random order?  ...

How can I return the last value of a vector?
Tanner - 2020-11-19

is there a command in Matlab, which returns the last value of a vector? In R is this command called "tail". For example: X = [1, 2, 3, 4] and I need a...

Get a Free Consultation or a Sample Assignment Review!