Time vector for swept sine signal and so on...
2 views (last 30 days)
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.
Kumar Pallav on 24 Mar 2022
From my understanding, the time vector is an array which has a start time and end time, and is divided in regularly spaced increments.
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!