calculate the inv of a matric with one constant

Hello all, I have a simple question. Assume that I have the following matrix. How can I find the inv of this matrix based on "t".
m = [3*t 0 0; 1 t o;0 0 t]; Thank you

1 Commento

Do you have the Symbolic Toolbox? E.g., can you make t a syms object?

Accedi per commentare.

 Risposta accettata

syms t
m = [3*t 0 0; 1 t 0;0 0 t];
inv(m)

3 Commenti

if you want to write this code in command window instead of editor, you don't need syms t
Thank you :-)
you're welcome

Accedi per commentare.

Più risposte (0)

Categorie

Richiesto:

il 5 Nov 2014

Commentato:

MA
il 5 Nov 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by