Convert double array into column vector

조회 수: 40 (최근 30일)
egg
egg 2019년 7월 30일
댓글: egg 2019년 7월 30일
Hello!
How can I convert the data format below ( f or f(:) ) into the data format in the other image (columns) ?
Screen Shot 2019-07-30 at 1.38.10 PM.png
Screen Shot 2019-07-30 at 1.36.46 PM.png
  댓글 수: 2
James Tursa
James Tursa 2019년 7월 30일
It is unclear to me what format you are starting with and what format you want to end up with.
egg
egg 2019년 7월 30일
I ended up figuring it out!
just had to do : [f(1,:) ]

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

채택된 답변

madhan ravi
madhan ravi 2019년 7월 30일
reshape(f,[],1) % column vector
reshape(f,1,1,[]) % 3D

추가 답변 (2개)

the cyclist
the cyclist 2019년 7월 30일
I'm not clear on the same point that James mentioned, but I'm going to guess that the reshape command is what you need.

James Tursa
James Tursa 2019년 7월 30일
Maybe one of these?
reshape(f,1,[])
f(:).'

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by