can anyone help me to obtain this vector: v=[1 2 5 6 9 10]; i want to know, if we can obtain a relation beteween the vector's elements ?

 Respuesta aceptada

Stephen23
Stephen23 el 20 de Oct. de 2017
Editada: Stephen23 el 20 de Oct. de 2017

2 votos

>> V = 0:5;
>> 2*V + mod(1+V,2)
ans =
1 2 5 6 9 10
See also:

Más respuestas (1)

Jan
Jan el 20 de Oct. de 2017

0 votos

V = cumsum([3, 1, 3, 1, 3, 1]) - 2

Categorías

Etiquetas

Preguntada:

el 20 de Oct. de 2017

Respondida:

Jan
el 20 de Oct. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by