Combining the data

6 vues (au cours des 30 derniers jours)
kash
kash le 9 Jan 2012
F = 3 5 6 15 17 21 35 45 46 51 56 57 66 70 71
please tell how to combine as
3 5
5 6
6 15
15 17
17 21 as on

Réponse acceptée

Andrew Newell
Andrew Newell le 9 Jan 2012
[F(1:end-1)' F(2:end)']
  1 commentaire
kash
kash le 9 Jan 2012
Thanks Andrew

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 9 Jan 2012
reshape(F, 2, []).'
  2 commentaires
kash
kash le 9 Jan 2012
Thanks walter
kash
kash le 9 Jan 2012
Walter ur code is not working for odd numbers od data
ur code output for my data is
F = 3 5 6 15 17 21 35 45 46 51 56 57 66 70 71
is
3 5
6 15
17 21
but i nees as
3 5
5 6
6 15

Connectez-vous pour commenter.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by