Replace values in collumns

조회 수: 4 (최근 30일)
Ancalagon8
Ancalagon8 2019년 11월 4일
편집: Ancalagon8 2025년 1월 6일
Hi everyone. I am having an issue while processing some data.The problem is that a from a random time point from y2 go to the last collumn. Any ideas how to fix this in order to finally plot each colllumn seperate?
Thanks in advance!

답변 (1개)

Bob Thompson
Bob Thompson 2019년 11월 4일
You can just index your matrix to reorder it, assuming all of the columns are the same type of data (i.e. all of column 6 is z2, and all of column 7 is rain).
data = [data(:,1:5),data(:,8),data(:,6:7)];

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by