필터 지우기
필터 지우기

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 (최근 30일)
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.

답변 (1개)

KSSV
KSSV 2021년 6월 24일
syms t
Op1 = [1 0 0 0; 0 1 0 0;0 0 1 0; 0 0 0 1] ;
Op1*cos(t)
ans = 

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by