Generate a formula from equation

2 visualizzazioni (ultimi 30 giorni)
Howard Wilton
Howard Wilton il 17 Nov 2022
Modificato: Matt J il 17 Nov 2022
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 Commenti
Matt J
Matt J il 17 Nov 2022
Modificato: Matt J il 17 Nov 2022
Give us some values for L, T and .

Accedi per commentare.

Risposte (1)

Matt J
Matt J il 17 Nov 2022
Modificato: Matt J il 17 Nov 2022
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))

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by