combing rows into one row

17 次查看(过去 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