I put down a script like this
for u=(10:10:20)'
i=(1:size(u,1))'
X=zeros(size(u,1),1)
X(i,1)=100/u(i,1)
end
I expect to get a result like
X=
10
5
but it came out like
X=
0
5
It seems it does work if it contain / in the equation. Please help!
I need to find the transfer function a system equation and it is in the form
[x/y]=[A]^-1[B]
x is input, y is out
[A] is a 2x2 matrix in the form of
A=[1+s 2
3 4+s ]
s is the laplace tranform function
Is it possible to output the inverse of [A] in MATLAB even it...
Ya you are right it is a second order. Thanks dude. I know that if I have the mass, stffness and damping matrix can work out the natural frequncy and damping ratio so it is the damped frequency but the problem is I couldn't extract the M,K,C matrix from [A]. I have seen the damp function in...
Matlab, how to find damped frequency of a sate space matrix euqation?
Hello:
I am working on a tyre mechanic problem basically it just a vibration problem so far I have dervied the the state space equation which is in the form
x'=[A]x+[B]u
[A] is 2x2 matrix, [B] is a 1X2 matrix (u...