Change the frequency of an array
4 ビュー (過去 30 日間)
古いコメントを表示
Hi All
I have an array (time) which will be combined with another and will create a signal. before I do the combination, I want to define an input parameter, that will be the frequency of this time array. so if the time array is 30 seconds and has a frequency of 100 Hz, I want to give the parameter freq=200Hz and arrange the array members in order that the time array becomes 15 seconds.
how would I do this
0 件のコメント
回答 (1 件)
Sulaymon Eshkabilov
2020 年 11 月 27 日
According to you exercise statement, this one works ok.
f = input('Enter time frequency value: ');
t0=0; dt = 1/f; tend = 3000/f;
t = t0:dt:tend;
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!