You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
djangraw/EegAndEye
Various MATLAB scripts for EEG/eye position data analysis. See the FormatFigures folder for broadly applicable visualization functions, StructsAndFiles for struct manipulation, and LogReg for machine learning functions. Many of the other folders are for specific experiments.
Cite As
David Jangraw (2022). djangraw/EegAndEye (https://github.com/djangraw/EegAndEye), GitHub. Retrieved .
Requires
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
3DSearch
- AddSyncField
- ClassifyWithEegAndDwellTime
- ClassifyWithPupilSize_v3.m
- Correlate3dsYValues
- DEMO_ARTIFACT_MOVIE.m
- GetEegPredictedTargets
- Process3dsData
- Process3dsData_MultiSubject.m
- Run3dsTagTspGui
- TEMP_ClassifyWithDwellTime.m
- TEMP_ClassifyWithPupilSize.m
- TEMP_ClassifyWithPupilSize_v2.m
- TEMP_Make3dsErps
- TEMP_QuantifyTimingOffsets.m
3DSearch/3DS-v4
3DSearch/3DS-v5
- find_blinkevents
- find_buttonevents
- find_eyesamples
- find_fixationevents
- find_saccadeevents
- find_writeioport
- Import_3DS_Data
- Import_3DS_Data_v2
3DSearch/ButtonAnalysis
- AllSubjects_RTHistogram.m
- CheckButtonPress
- CompiledRTHistogram
- CreateRTHistogram
- RemoveIncorrectTrials
- RemoveIncorrectTrials
- TimeBetweenEvents
3DSearch/ConferenceFigures
- PlotBionavFigures_03302012.m
- ProduceIeeeBootstrapplot.m
- ProduceIeeeErps.m
- ProduceIeeeSaccadeTimes.m
- ProduceIeeeScalpmaps.m
- ProduceIeeeTimeBinHists.m
- ProduceTurkeyAzComparison.m
- TEMP_MakeEfficiencyPlots.m
3DSearch/Consolidate
3DSearch/ERPs
3DSearch/EeglabHelperFunctions
3DSearch/EeglabReplacements
3DSearch/Epoching
3DSearch/EventAdding
3DSearch/EventCalculation
- ChangeSacToObjThresholds
- EyelinkToEegTimes
- GetFirstAppears
- GetFirstSaccades
- GetFrameTimes
- GetRecognizableTimes
- GetVisibleTimes
- get_objecttimes
- MakeEventsMatrix
3DSearch/EyeMovements
- AnalyzeEyeEvents.m
- ApplyEyeCalibration
- ApplyEyePosCorrection
- BlinkRange
- DistToObject
- DistToObjectCenter
- EyePositionHeatMap
- GetDwellTimes
- GetEpochedPupilSize
- GetEpochSaccades
- GetEpochSaccadesToObject
- GetEyeAverages
- GetEyeErps
- GetEyeSamples
- InterpolateBlinks
- kde2d
- MakeEyeMovie
- PlotDistanceAndPupil
- PlotEyeAndEeg
- PlotEyeErps
- PlotEyeErps
- PlotEyeErps_MultiSession
- PlotFixationProperties
- PlotPupilErps
- PlotSaccadeDistance
- SaccadeDelayHistogram
- Sort_EyeErps
- TestEyePosCorrection
- UndoEyeCalibration
3DSearch/EyeMovements/PupilSize_from_Linbi
3DSearch/FeatureSelection
- ClassifierWrapper_forSFFS
- ClassifierWrapper_forSFFS_xsubj
- ClassifierWrapper_forSFFS_xsubj_noxval
- example483.m
- SequentialForwardFloatingSelection
- SequentialForwardFloatingSelection_DJ
- SequentialForwardFloatingSelection_DJ_ADDON
- SequentialForwardSelection
- SFFS_wrapper
- SFFS_wrapper_LOSO
- SFFS_wrapper_testing.m
- Test3dsSffs_LOSubjO_script
- TestSFFS
3DSearch/FiguresForPaper
3DSearch/Import
- classify_saccades
- find_events
- get_biosemi_events
- get_biosemi_eventsamplerate
- get_objectevents
- get_objectlimits
- get_sensorium_events
- get_trialobjects
- get_trialtimes
- ImportAll.m
- ImportAllGui
- ImportAll_NOFILTER.m
- ImportEyeCalibration
- ImportToEeglab
- ImportToEeglab_2014
- Import_3DS_Data_v3
- Import_3DS_Data_v4
- PlotObjectLifetimes
3DSearch/NoiseRemoval
- AddBlinkMarkers
- AddHeogFixationMarkers
- blinkartifacts
- ExcludeTrialsByCutoff
- FindBlinkSaccades
- FindHeogFixations
- GetBlinkComponent
- GetHeogComponent
- InterpolateElectrodes
- PlotExclusionHistogram
- RemoveBlinkArtifacts
- RemoveElectrodes
- RemoveEogComponents
- RemoveEyeBlinkTrials
- RemoveFrontalElectrodes
- SubtractOutComponents
- UseEyeCalibration
3DSearch/SceneVisualization
- CalculateImprovement
- FindBestRoute
- ImageAllSessions
- ImageAllSessions
- ImageAllSessions_BioNav
- ImageLevel
- ImagePoints
- MakeAllBionavFigures_script.m
- MakeGridHugeImage.m
- MakeRepeatedImage
- ScaleImage
3DSearch/Stimuli
3DSearch/TAG
- GetObjectList
- GTAM_eegwronglabels.m
- RerankObjectsWithTag
- RunPupilResultsThroughTag.m
- RunResultsThroughTAG
3DSearch/TSP
FormatFigures
- CascadeFigures
- CopyAxisToNewFigure
- distinguishable_colors
- DrawArc
- ErrorPatch
- GetAxisLineData
- GetAxisTopoData
- GetBarPositions
- GetSubplots
- herrorbar
- MakeFigureTitle
- MakeLegend
- pcolor_all
- PlotHorizontalLines
- PlotUniqueLines
- PlotVerticalLines
- ResizeFigures
- rotateticklabel
- show_symbols
- SmoothData
- ThresholdedCmap
- uimage
- uimagesc
- xticklabel_rotate
GLM
- ClassifyXfoldEegGlm
- ClassifyXfoldEegGlm_SVD
- CombineGlmResults
- CompareGlmModelStats_script.m
- CompareResidualsAcrossAnalyses.m
- ConsolidateGlmResults
- ConsolidateGlmResults_script.m
- ExpandLastGlmLevel_script.m
- GetComponentContrast
- GetContrastResults_fast.m
- GetContrastsFromResponseFns
- GetCrossSubjectStats
- GetFolds
- GetGlmFoldBounds
- GetGlmInverseMatrix
- GetGlmMatrices
- GetGlmMse
- GetGlmRegressors
- GetGlmRegressors_v2p0
- GetGlmZscore
- GetGroupIcaResults_script.m
- GetLambdaIteratively
- GetLambdaIteratively_script.m
- GetLosoLambdas_script.m
- GetRidgeTrace.m
- GetVifRidgeTrace_script.m
- LoadAllGlmResults
- LoadMultiLevelResponseFns
- MakeContrastMatrix
- MakeContrastMatrix_flex
- MakeTestDataset_EegGlm_script.m
- PerformRidgeTrace
- PlotAverageElectrodeResponse
- PlotCorrelationMatrices_script.m
- PlotElectrodeResponse
- PlotGlmResponses
- PlotResponseFns
- PlotResponseFnsGrid
- PlotRfsWithPermuationStats
- PlotSquaresStats
- PlotSquaresStats_v2pt0
- PredictGlmSaccadeTypes
- PrepareGlmDataForClassification
- RedoGlmLevels
- RedoWithRidgeRegression_script.m
- RunAddOnLevelOfGlm
- RunEegGlm
- RunErpLikeGlm
- RunGlmGui
- RunGlmLikeGui
- RunGlmPermutations
- RunGlm_MultiSubject_script.m
- RunRidgeTrace_CrossVal
- RunRidgeTrace_multistep
- RunRidgeTrace_nstep
- RunRidgeTrace_nstep_script
- RunRidgeTrace_script.m
- RunRidgeTrace_simple
- RunTopLevelGlm_EEG_flex
- RunTopLevelGlm_flex
- RunXfoldEegGlm
- SaveOutGlmMatrices_script.m
- SetUpGlm
- SimpleGLM
- SubtractOutGlmResponses
- SynthDataGlmTest_script.m
- TEMP_CheckForOffset_Script.m
- TEMP_CorrelateSqNumResults.m
- TEMP_GetCrossSubjectStats_Script.m
- TEMP_GlmZscoreScript.m
- TEMP_PlotMeanIcaResults_20140319.m
- TEMP_PlotScalpMaps_20140319.m
- TEMP_PlotVariousRfs_20140319.m
- TEMP_TestGlmMethods.m
- TEMP_UpdateRidgeTrace.m
- TryPcaShrinkage_script.m
- TryPcaShrinkage_synthdata.m
- UpdateGlmResultsFormat
GLM/Components
- ApplyIcaToGlmInput
- ApplyIcaToGlmResults
- ApplySvdToGlmResults
- ApplySvdToMultiSubjects
- GetGroupIcaResults
- GetGroupSvdResults
- GetGroupSvdResults_script.m
- MatchComponents
- PlotGroupSvdResults
- PlotSvdWeightsAndCourses
- TEMP_GetAllSvdResults_script.m
- TEMP_IcaOnGlmInputs_MultiSubject.m
- TEMP_IcaOnGlmInputs_PlotResults.m
- TEMP_LoadAndPlotGlmResults_SvdAndMeanComp.m
GLM/Hierarchical
- RunTopLevelGlm
- RunTopLevelGlm_EEG
- RunTopLevelGlm_Full
- SetUpTopLevelGlm
- SetUpTopLevelGlm_flex
- TopLevelEegGlm_script.m
- TopLevelGlm_flex_script.m
GLM/Stats
LogReg
- ApplyWeightsToData
- assertVec
- BootstrapLogReg.m
- GetForwardModel_rawdata
- GetLooResults
- LoadLooResults
- logist_fast
- MakeLogRegMovie
- PlotLooResults
- pop_logisticregression_fast
- RunMultiLR
- RunSingleLR
- run_rsvp_classifier
- run_rsvp_classifier_rawdata
- SaveLooResults
- setCrossValidationStruct
LogReg/CombinedClassifier
- ApplyHybridHdcaClassifier
- PlotHybridClassifierResults
- PlotHybridHdcaClassifier
- Run2LevelClassifier_nested
- RunHdcaClassifier
- RunHybridHdcaClassifier
- RunHybridHdcaClassifier_LR
- TEMP_TestHybridHdca.m
- TrainHybridHdcaClassifier
LogReg/ElasticNet_fromBryan
LogReg/Sparse_fromJianing
- bernoull.m
- ClassificationResult
- EEGSparseDecodingAnalysis.m
- LogisticLoss
- LogisticLossDeri
- rocarea.m
- SparseLogisticRegression
- SparseSolverInitialization
NEDE
NEDE/FlightSim
- AddFlightSimEyePos
- GetFlightSimBehavior
- PlaceGates
- PlotFlightSimBehavior
- PlotPrePioBehavior
- RunFlightSimPilot_script.m
- TEMP_TestStepResponse.m
- TestFlightSimFile
NEDE/NEDE_Analysis
NEDE/NEDE_Analysis/helpers
NEDE/NEDE_EEG
- FlightSim_AddEeglabEvents
- NEDE_AddHeogEvents
- NEDE_FilterEegData
- NEDE_GetEeglabEvents
- NEDE_ImportToEeglab
NEDE/NEDE_Import
NEDE/NEDE_Import/helpers
- NEDE_ApplyEyeCalibration
- NEDE_ClassifySaccades
- NEDE_ExtractBiosemiEvents
- NEDE_GetObjectTimes
- NEDE_ParseEvents
- NEDE_ParseObjects
- NEDE_ParseParams
NEDE/NEDE_Visualization
NEDE/NEDE_Visualization/helpers
ScalpMaps
Squares
- AddEeglabEvents_MultiSession
- BuildSequenceContrast
- ChangeSacToObjThresholds_squares
- CheckFirstVsSecondHalves.m
- CheckPerceptualUpdate.m
- classify_squares_saccades
- CompileContrasts
- ConvertBetaToRF
- CorrelateSaccadeDistanceWithEeg
- EnforceVoltageThreshold
- eogartifacts
- EpochSquaresGui
- EyelinkToEegTimes_BigData
- FindEogComponent_Squares
- FindTimeBetweenEvents
- FindTimeHistOfEvents
- FixSyncEvents
- GetBigDataStruct
- GetComponentContrasts_script.m
- GetEventWeights
- GetGroupResults_SequenceContrast.m
- GetLogOddsRatio
- GetMeanSpectra.m
- GetSaccadeToSquareNumbers
- GetSequenceContrast
- GetSquaresConstants
- GetSquaresErps
- GetSquaresEventColormap
- GetSquaresSubjects
- GetSquareTypes
- GetTimingOffsets_script.m
- ImageSortedData
- InterpChan
- loadBehaviorData
- MakeFreqBandDataset
- MatchSaccadeProperties
- MatchUpSquaresEvents
- perform_drift_correction
- PlotContrastComparisons_script.m
- PlotEyeSamplesAndEvents
- PlotReconstructedTrial
- PlotReconstructedTrials_script.m
- PlotResultsAsErps
- PlotResultsAsScalpMaps
- ReconstructTrial
- RedactArtifacts_data
- RedactArtifacts_events
- RejectEegData
- RemoveEogAndFilter
- RemoveEogArtifacts
- RemoveEogComponent_Squares
- RemoveSaccadePupilChanges
- saveBehaviorData
- TEMP_20140808_Hacks.m
- TEMP_AddRecordingStartTime
- TEMP_GetSessionEog.m
- TEMP_Plot10foldResults_script.m
- TEMP_PlotEogWithDifferentFilters.m
- TEMP_SequencesAndFreqs.m
- TEMP_UpdateGroupStdErr.m
- TestHdcaClassifiers_script.m
- TestLogOddsChange_script.m
- undo_drift_correction
- UseEventRule
Squares/Behavior
- CompareSaccadeProperties
- FindSaccadesToSquares
- GetAllTrialSequences
- GetIsiGaussianFits
- GetSaccadeProperties
- MakeEyeMovie_squares
- MatchFixationDurations
- PlotTrialTypeExpectations.m
- plot_squares_trial
- RejectBehavior
- TEMP_FindFixationDurationDistribution_script.m
- TEMP_FindSaccadeToSquareCutoff.m
- TEMP_MatchFixationDuration_script.m
Squares/FiguresForPaper
- PlotDecisionErpsAndScalpMaps.m
- PlotIncDecisionErpsAndScalpMaps.m
- PlotResponseFnsForThesis
- PlotSquareErpsAndScalpMaps.m
- PlotTargetErpsAndScalpMaps.m
- ProduceSquaresPaperFigures.m
Squares/Import
- ImportAllSquares.m
- ImportAllSquaresGui
- ImportAllSquaresScript.m
- ImportAlphaDataset
- import_squaresfix_data
- import_squares_data
Squares/OneTimeUse
Squares/PupilSize
Squares/ThesisHacks
- CalculateFwdModelWithYmeanSubtraction.m
- CompareSquareResponses.m
- GetNtrialsRemoved.m
- GetTrialStartResponse.m
- PlotSequenceErpsAndScalpMaps.m
- PlotSvdForSequenceEvents.m
StructsAndFiles
- AppendStructs
- ApplyDefaultsToStruct
- CropStruct
- CropStructsToMatch
- find_first_word
- UnpackStruct
- UpdateFile
locationfiles
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)