Hi folks,
I have the following cell array:
hvix =
[2x1 double]
[2x8 double]
[2x15 double]
[2x1 double]
I want to concatenate them into a 2 x 25 matrix. Is this possible?
Thanks

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2018년 9월 11일

0 개 추천

cell2mat(hvix(:)')

댓글 수: 2

monica padala
monica padala 2021년 4월 8일
Hi, I have the following cell array:
M =
[Ax1 double]
[Bx1 double]
[Cx1 double]
[Dx1 double]
[Ex1 double]
Is it possible to concatenate them into 5x4 matrix ?
output = [A B C D E] matrix
M = arrayfun(@(x)rand(4,1),ones(5,1),'un',0)
out = [M{:}]'

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

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

BOB
2018년 9월 11일

편집:

2022년 2월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by