From eb3fc38787741da293246043c3ddd984051a2a14 Mon Sep 17 00:00:00 2001 From: dkluger Date: Fri, 4 Oct 2024 14:08:28 -0600 Subject: [PATCH] Fixed logic for comments in NEV output --- NPMK/openNEV.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NPMK/openNEV.m b/NPMK/openNEV.m index 08ae72a..cd29536 100644 --- a/NPMK/openNEV.m +++ b/NPMK/openNEV.m @@ -767,10 +767,10 @@ if strcmp(NEV.MetaTags.FileSpec, '3.0') NEV.Data.Comments.TimeStampStarted = NEV.Data.Comments.TimeStampStarted(colorFlag == 1); NEV.Data.Comments.TimeStampStartedSec = NEV.Data.Comments.TimeStampStartedSec(colorFlag == 1); - NEV.Data.Comments.TimeStamp = NEV.Data.Comments.TimeStamp(colorFlag == 1); - NEV.Data.Comments.TimeStampSec = NEV.Data.Comments.TimeStampSec(colorFlag == 1); - NEV.Data.Comments.CharSet = NEV.Data.Comments.CharSet(colorFlag == 1); - NEV.Data.Comments.Text = NEV.Data.Comments.Text(colorFlag == 1,:); + NEV.Data.Comments.TimeStamp = NEV.Data.Comments.TimeStamp(colorFlag == 0); + NEV.Data.Comments.TimeStampSec = NEV.Data.Comments.TimeStampSec(colorFlag == 0); + NEV.Data.Comments.CharSet = NEV.Data.Comments.CharSet(colorFlag == 0); + NEV.Data.Comments.Text = NEV.Data.Comments.Text(colorFlag == 0,:); NEV.Data.Comments.Color = NEV.Data.Comments.Color(colorFlag == 0,:); end