qd0 Reference Frame symbolic transfer matrix
Versione 1.0.0 (1,57 KB) da
Hamed Najafi
symbolic calculation of transfer matrix for arbitrary reference frame
I share the MATLAB code that I wrote for symbolic calculations of the arbitrary reference frame transfer matrix. I hope you find it useful:
The code below will generate the transfer matrix to the arbitrary reference frame (Ks) for you (2:Kraus coefficients/1:Concordia coefficients):
(As you know: 2:magnitude-invariant transformation , 1: power-invariant transformation)
Now for example to calculate the term Ks.p(Ks-1) you can simply write simplify( Ks*diff(inv(Ks))) in the Command Window and your answer will be:
ans(t) =
[ 0, diff(theta(t), t), 0]
[ -diff(theta(t), t), 0, 0]
[ 0, 0, 0]
and by ω=diff(theta(t), t) we will have:
ans(t) =
[ 0, ω, 0]
[ -ω, 0, 0]
[ 0, 0, 0]
Have a nice time!
Hamed Najafi
Cita come
Hamed Najafi (2024). qd0 Reference Frame symbolic transfer matrix (https://www.mathworks.com/matlabcentral/fileexchange/160208-qd0-reference-frame-symbolic-transfer-matrix), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2020a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxTag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0 |