Matlab / Octave number sequence -
Matlab / Octave number sequence -
i know can create number sequence in octave / matlab using 1:1:5 give me 1,2,3,4,5
but how can sequence of 1/5, 1/4, 1/3, 1/2, 1, 1, 2, 3, 4, 5
thanks i'm using octave 3.8.1
is need?
n = 5; sequence = [ 1./(n:-1:1) 1:n ];
matlab octave sequences
Comments
Post a Comment