Filter löschen
Filter löschen

I want to simplify a equation in matlab that has terms of sin(t) and cos(t). When i run it it shows unrecognised variable. What should i do?

4 Ansichten (letzte 30 Tage)
This is the code i wrote
Op1("I4")*cos(t)
Here
Op1("I4")=[1 0 0 0; 0 1 0 0;0 0 1 0; 0 0 0 1]
Op1
I want the result to be displayed in terms of cos(t). Please help me out.

Antworten (1)

KSSV
KSSV am 24 Jun. 2021
syms t
Op1 = [1 0 0 0; 0 1 0 0;0 0 1 0; 0 0 0 1] ;
Op1*cos(t)
ans = 

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by