Combining the data

조회 수: 6 (최근 30일)
kash
kash 2012년 1월 9일
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

채택된 답변

Andrew Newell
Andrew Newell 2012년 1월 9일
[F(1:end-1)' F(2:end)']
  댓글 수: 1
kash
kash 2012년 1월 9일
Thanks Andrew

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2012년 1월 9일
reshape(F, 2, []).'
  댓글 수: 2
kash
kash 2012년 1월 9일
Thanks walter
kash
kash 2012년 1월 9일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by