I would add one variable inside function
이전 댓글 표시
I have x(t) and I would to create x(t+ta) by matlab code. For example
if I have x(t)= 2t+3 , I need to create x(t+ta)= 2t+2ta+3 and so on.
Please consider x(t)=5sin(2t+theta), and x(t+ta)=5sin(2t+2ta+theta) for your explaintion.
Thank you in advance.
채택된 답변
추가 답변 (1개)
KALYAN ACHARJYA
2019년 3월 10일
편집: madhan ravi
2019년 3월 10일
syms t ta theta
x(t)=5*sin(2*t+theta);
disp(x(t+ta))
Command Window
5*sin(2*t + 2*ta + theta)
댓글 수: 2
Willim
2019년 3월 10일
KALYAN ACHARJYA
2019년 3월 10일
편집: KALYAN ACHARJYA
2019년 3월 10일
Hello Faraj, you are doing wrong way, do the operation inside disp() only
Its giving the answer:
syms t ta theta
x(t)=5*sin(2*t+theta);
disp(x(t)*x(t+ta))

카테고리
도움말 센터 및 File Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!