ORIDIR_VECTORINDEX-computeorientation/directionvectorindexesVI=ORIDIR_VECTORINDEXES(RESPSTRUCT)Computesorientation/directionindexvectorvaluesfromaresponsestructureRESP.RESPSTRUCTisastructureofresponsepropertieswithfields:Field|Description-----------------------------------------------------------------------------curve|4xnumberofdirectionstested,|curve(1,:)isdirectionstested(degrees,compasscoords.)|curve(2,:)ismeanresponses|curve(3,:)isstandarddeviation|curve(4,:)isstandarderrorind|celllistofindividualtrialresponsesforeachdirectionReturnsastructureVIwithfields:Field|Description----------------------------------------------------------------------------------------ot_HotellingT2_p|Hotelling's T^2 test of orientation vector dataot_pref|Anglepreferenceinorientationspaceot_circularvariance|Magnitudeofresponseinorientationspace(seeRingachetal.2002)ot_index|Orientationindex((pref-orth)/pref))tuning_width|Vectortuningwidth(seehelpCOMPUTE_TUNINGWIDTH)dir_HotellingT2_p|Hotelling's T^2 test of direction vector datadir_pref|Anglepreferenceindirectionspacedir_circularvariance|Directionindexinvectorspacedir_dotproduct_sig_p|Pvalueofdotproductdirectionvectorsignificance|methodofMazureketal.2014