Generate a formula from equation

I am trying to plot the following, where , and T is a constant.
I wish to create a vector of data using the vector t so that my vector s is long:
t=0:1e-2:L*T-1e-2

댓글 수: 2

Matt J
Matt J 2022년 11월 17일
편집: Matt J 2022년 11월 17일
Give us some values for L, T and .
Howard Wilton
Howard Wilton 2022년 11월 17일
.

댓글을 달려면 로그인하십시오.

답변 (1개)

Matt J
Matt J 2022년 11월 17일
편집: Matt J 2022년 11월 17일

0 개 추천

L=3;
T=1;
w0=2*pi/(T/3);
ts=linspace(0,T,101)'; ts(end)=[];
w=w0+(0:L-1)/T;
s=reshape( exp(1j*ts*w) ,1,[]);
t=linspace(0,L*T,numel(s)+1); t(end)=[];
plot(t, real(s), t,imag(s))

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2022년 11월 17일

편집:

2022년 11월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by