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 ExchangeMATLAB についてさらに検索

製品

リリース

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