how to make a row matrix from matlab generated data.

Hi all,
I have a matlab code that outputs the reselts in the form of s(:,:,1) = 'value' , s(:,:,2)='value' , s(:,:,3)='value' and so on.
Now, I want to combine all these " S " to form a single row matrix or a single column matrix.
thanks...

댓글 수: 2

could you show what
size(s) shows?
whos s
I am doing it for mXn matrix ( user defined)
for a 2X6 matrix input ,
size(s) shows
ans=1 1 2

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

 채택된 답변

Jos (10584)
Jos (10584) 2019년 2월 22일
reshape(S,1,[]) % row vector

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2019년 2월 22일

댓글:

2019년 2월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by