Siddharth Pachpor - MATLAB Cody - MATLAB Central

Siddharth Pachpor

11382
Rank
5
Badges
479
Score
51 – 62 of 62

Siddharth Pachpor submitted a Comment to Problem 44948. Calculate a Damped Sinusoid

I think i need explanation for this concept : The vector t should be linearly spaced from 0 to T, with N elements. if I do, a = 1:6, the ans is 1 2 3 4 5 6 but now if i do, a = 1:2:6, ans is 1 3 5 so for linear distributed vector to reach end point 6, we need to do, a = 1:(6-1)/(6+1):6 --------similarly can it be done as t = 0:(T-1)/(T+1):T? what is the concept in the words 'linearly spaced'?

on 1 May 2022

Siddharth Pachpor received Solver badge for Solution 6227757

on 8 Aug 2021

51 – 62 of 62
Go to top of page