combing rows into one row

조회 수: 16 (최근 30일)
Viktoriya
Viktoriya 2022년 12월 1일
답변: Stephan 2022년 12월 1일
Hello, I have a matfile looking like that
I need to combine all the rows (excluding the 1st row and 1 column), I've tried to use num2cell and it doesnt work.
Does anyone know how to do that?

답변 (1개)

Stephan
Stephan 2022년 12월 1일
I assume you want to have all values in a row vector:
YouWant = reshape(MeanTemp(2:end,2:end),1,[]);

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by