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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -