Replace values in collumns

2 vues (au cours des 30 derniers jours)
Ancalagon8
Ancalagon8 le 4 Nov 2019
Modifié(e) : Ancalagon8 le 6 Jan 2025
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!

Réponses (1)

Bob Thompson
Bob Thompson le 4 Nov 2019
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)];

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by