値を代入すると全て0になる。
Afficher commentaires plus anciens
私は、
-------------
u = sech(t)
-------------
を実行しようとしました。
しかし、実行結果は、値が全て0になっていました。
試したこと
- disp(t)で代入前の t を確認したところ、値は以下の通りありました。
… 3.1750 3.1781 3.1812 3.1844 3.1875 3.1906 3.1938 3.1969
- しかし、値を代入してdips(u) としたとき、値は全て0となっていました。
0 0 0 0 0 0 0 0
- t の詳細は以下の通りとなっております。
nt = 2^11; % FFT points
Tmax = 2^8; % window size
T0 = 25; % Pulse width, ps
dtau = (Tmax*T0)/nt; % step size in tau
tau = (-nt/2:nt/2-1)*dtau;% time array
何か原因があれば、教えてくださるでしょうか。
よろしくお願いいたします。
Réponses (1)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
