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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -