Time vector for swept sine signal and so on...

1 回表示 (過去 30 日間)
David Kendal
David Kendal 2022 年 3 月 21 日
コメント済み: David Kendal 2022 年 3 月 24 日
I have a Uni assignment for Matlab, please can you explain the part where '% define time vector' is listed.
I don't get what I am meant to time here everything above this I understand.
Beyond this I am confused.
Please help.
Thanks

回答 (1 件)

Kumar Pallav
Kumar Pallav 2022 年 3 月 24 日
Hi,
From my understanding, the time vector is an array which has a start time and end time, and is divided in regularly spaced increments.
For eg:
>> x=0:2:10
x =
0 2 4 6 8 10
Here, x is an array from 0 to 10 in intervals of 2.
Please refer this documentation for more on Vector creation, array subscripting, and for-loop iteration.
Hope it helps!
  1 件のコメント
David Kendal
David Kendal 2022 年 3 月 24 日
I couldn't remember this from our last session as I've only just started our module.
I think you are definately correct.
Thankyou!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by