How to a make an array of set length that spans a set of values.
Afficher commentaires plus anciens
i am trying to have a matrix with teh start point of -pi/2 and ends on pi/2 over a length of 65 points. so that the next value would be -pi/2+pi/2*1/64 with the final value being pi/2 at the end of the arrray or matrix. i think i can preallocate the matrix to be zeros and make it 65 untis long. then set the first value of the matrix to be -pi/2. then increase the interval or the point specified in the matrix and then just add the previous value in the matrix plus pi/2*1/64. i am trying to figure out if there is an easier way.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!