This MATLAB Function is TRICKY 🙀

Publié le: 14 juillet 2022
sur la chaîne: Laplace Academy
1,761
28

Hello. welcome to Laplace Academy.
In this #short tutorial I'm going to introduce this MATLAB function: diag.
diag is the abbreviated form of diagonal matrix.

So to create a diagonal matrix out of a vector, just use diag function.

Also, you can extract the diagonal elements of a matrix using this command, diag(M).
It returns the diagonal elements in a column vector.
You can convert it into a row vector by transposing it. diag(M)'


Sur cette page du site, vous pouvez voir la vidéo en ligne This MATLAB Function is TRICKY 🙀 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Laplace Academy 14 juillet 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,761 fois et il a aimé 28 téléspectateurs. Bon visionnage!