archive-org.com » ORG » C » CHRONUX.ORG

Total: 412

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Description of nex_wf
    0002 nex wf filename varname Read waveform variable from a nex file 0003 0004 adfreq n ts nf w nex wf filename varname 0005 0006 INPUT 0007 filename if empty string will use File Open dialog 0008 varname variable name 0009 0010 0011 OUTPUT 0012 n number of waveforms 0013 ts array of waveform timestamps in seconds 0014 nf number of data points in each waveform 0015 w matrix of waveform a d values n nf in millivolts 0016 0017 n 0 0018 adfreq 0 0019 ts 0 0020 nf 0 0021 w 0 0022 0023 if nargin 2 0024 disp 2 input arguments are required 0025 return 0026 end 0027 0028 if ischar filename 0 0029 disp input arguments should be character arrays 0030 return 0031 end 0032 0033 if ischar varname 0 0034 disp input arguments should be character arrays 0035 return 0036 end 0037 0038 if isempty filename 0039 fname pathname uigetfile nex Select a Nex file 0040 filename strcat pathname fname 0041 end 0042 0043 fid fopen filename r 0044 if fid 0 0045 return 0046 end 0047 0048 disp strcat file filename 0049 magic fread fid 1 int32 0050 version fread fid 1 int32 0051 comment fread fid 256 char 0052 freq fread fid 1 double 0053 tbeg fread fid 1 int32 0054 tend fread fid 1 int32 0055 nvar fread fid 1 int32 0056 fseek fid 260 cof 0057 name zeros 1 64 0058 found 0 0059 for i 1 nvar 0060 type fread fid 1 int32 0061 var version fread fid 1 int32 0062 name fread fid 1 64 char 0063 offset fread fid 1 int32 0064 nf fread fid 1 int32 0065 dummy fread fid 32 char 0066 adfreq fread fid 1 double 0067 adtomv fread fid 1 double 0068 n fread

    Original URL path: http://www.chronux.org/Documentation/chronux/dataio/HowToReadNexFilesInMatlab/nex_wf.html (2015-03-27)
    Open archived version from archive


  • Description of videoread
    cell array of arguments Copyright c 2006 Gerald Dalley See MIT txt in the installation directory for licensing details especially when using this library on GNU Linux CROSS REFERENCE INFORMATION This function calls This function is called by SOURCE CODE 0001 function mov videoread fname varargin 0002 VIDEOREAD Read an video file in a mannter compatible with Matlab s 0003 built in AVIREAD function but using a videoReader object to do 0004 the work instead 0005 0006 MOV VIDEOREAD FNAME 0007 Read the video file FNAME into the Matlab movie structure MOV MOV 0008 has two fields cdata and colormap Since all videoReader 0009 plugins currently output 24 bit images in all cases colormap will 0010 always be blank 0011 0012 MOV VIDEOREAD FNAME VRARGS 0013 The same as MOV VIDEOREAD FNAME but VRARGS are passed to the 0014 videoReader constructor VRARGS should be a cell array of arguments 0015 E g 0016 mov videoread tests numbers wmv3 avi DirectShow 0017 0018 MOV VIDEOREAD FNAME INDEX 0019 Reads only the frame s specified by INDEX INDEX can be a single 0020 index or an array of indices into the video stream where the first 0021 frame is number one IMPORTANT NOTES If you use videoReader 0022 directly it assumes frames start at 0 not 1 We use 1 indexing 0023 here in VIDEOREAD to maximize compatibility with MathWork s AVIREAD 0024 Also if you find yourself making several calls to VIDEOREAD to 0025 extract different portions of the file and or if the number of 0026 frames is large consider using videoReader directly instead of this 0027 wrapper function 0028 0029 MOV VIDEOREAD FNAME VRARGS INDEX 0030 The same as MOV VIDEOREAD FNAME INDEX but VRARGS are passed to the 0031 videoReader constructor VRARGS should be a cell array of

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2006a/videoread.html (2015-03-27)
    Open archived version from archive

  • Description of ddt
    filename 0005 0006 INPUT 0007 filename if empty string will use File Open dialog 0008 0009 OUTPUT 0010 nch number of channels 0011 npoints number of data points for each channel 0012 freq A D frequency 0013 d nch npoints data array 0014 0015 if nargin 1 0016 disp 1 input argument is required 0017 return 0018 end 0019 nch 0 0020 npoints 0 0021 0022 if isempty filename 0023

    Original URL path: http://www.chronux.org/Documentation/chronux/dataio/ReadingPLXandDDTfilesinMatlab/ddt.html (2015-03-27)
    Open archived version from archive

  • Description of next
    txt in the installation directory for licensing details especially when using this library on GNU Linux CROSS REFERENCE INFORMATION This function calls This function is called by getnext FRAME GETNEXT VR SOURCE CODE 0001 function worked next vr 0002 WORKED NEXT VR 0003 Advances to the next frame in the video Returns 0 if the next frame is 0004 not available 0005 0006 After the videoReader constructor is called NEXT

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2006a/@videoReader/next.html (2015-03-27)
    Open archived version from archive

  • Description of defaultVideoIOPlugin
    txt in the installation directory for licensing details especially when using this library on GNU Linux CROSS REFERENCE INFORMATION This function calls This function is called by SOURCE CODE 0001 function pluginName defaultVideoIOPlugin 0002 pluginName defaultVideoIOPlugin 0003 Returns the name of the default videoIO videoReader videoWriter plugin 0004 The videoReader and videoWriter constructors will use the returned plugin if 0005 none is specified 0006 0007 SEE ALSO 0008 buildVideoIO 0009

    Original URL path: http://www.chronux.org/Documentation/chronux/fly_track/videoIO/videoIO_2006a/defaultVideoIOPlugin.html (2015-03-27)
    Open archived version from archive

  • Description of wave_browser
    Fs t 0462 else 0463 indexinS getindexpre c handles t handles Tmin 1 handles Fs handles Tmax 1 handles Fs 0464 indexinS round handles Tmin 1 handles Tmax 1 handles Fs movingwin 2 1 0465 0466 if indexinS 1 1 0467 indexinS 1 1 0468 end 0469 0470 SLen length handles S 1 0471 0472 if indexinS 2 SLen 0473 indexinS 2 SLen 0474 end 0475 0476 f handles f 0477 t handles t indexinS 1 indexinS 2 0478 S handles S indexinS 1 indexinS 2 0479 0480 timeax t 0481 end 0482 0483 cmap default 0484 0485 th eval get handles AmpThresh String 0486 0487 This sets up the automatic segmenting algorithm 0488 if strcmp handles automethod threshold 0489 Stot boxcurve compute threshold free S th handles nsmooth 0490 axes handles axesP 0491 semilogy timeax Stot 0492 axis tight 0493 elseif strcmp handles automethod ratiof 0494 ratiof boxcurve compute index S handles lower range handles upper range fmin fmax handles indexthresh handles nsmooth 0495 axes handles axesP 0496 semilogy timeax ratiof 0497 axis tight 0498 end 0499 0500 0501 hold on semilogy timeax boxcurve r hold off 0502 axes handles axesS 0503 imagesc timeax f log S axis xy colormap cmap 0504 imagesc t f log S axis xy colormap cmap 0505 0506 set h ButtonDownFcn axes2ButtonDownCallback 0507 0508 case Time Derivative 0509 0510 if not handles precomputed spec handles firsttime 0511 S t f mtdspecgramc diff data movingwin 0 params S S 0512 timeax handles Tmin handles Fs t 0513 else 0514 indexinS getindexpre c handles t handles Tmin 1 handles Fs handles Tmax 1 handles Fs 0515 indexinS round handles Tmin 1 handles Tmax 1 handles Fs movingwin 2 1 0516 0517 if indexinS 1 1 0518 indexinS 1 1 0519 end 0520 0521 SLen length handles S 1 0522 0523 if indexinS 2 SLen 0524 indexinS 2 SLen 0525 end 0526 0527 f handles f 0528 t handles t indexinS 1 indexinS 2 0529 S handles S indexinS 1 indexinS 2 0530 timeax t 0531 end 0532 0533 cmap gray 0534 th eval get handles TDerThresh String 0535 0536 if strcmp handles automethod threshold 0537 Stot boxcurve compute threshold free abs S th handles nsmooth 0538 axes handles axesP 0539 semilogy timeax Stot 0540 axis tight 0541 elseif strcmp handles automethod ratiof 0542 ratiof boxcurve compute index abs S handles lower range handles upper range fmin fmax handles indexthresh handles nsmooth 0543 axes handles axesP 0544 semilogy timeax ratiof 0545 axis tight 0546 end 0547 0548 hold on semilogy timeax boxcurve r hold off 0549 axes handles axesS 0550 imagesc timeax f S axis xy colormap cmap 0551 cmin 0 02 min min S cmax 0 02 max max S caxis cmin cmax 0552 0553 case Frequency Derivative 0554 0555 if not handles precomputed spec handles firsttime 0556 S t f mtdspecgramc diff data movingwin pi 2 params S S 0557 timeax handles Tmin handles Fs t 0558 else 0559 indexinS getindexpre c handles t handles Tmin 1 handles Fs handles Tmax 1 handles Fs 0560 0561 if indexinS 1 1 0562 indexinS 1 1 0563 end 0564 0565 SLen length handles S 1 0566 0567 if indexinS 2 SLen 0568 indexinS 2 SLen 0569 end 0570 0571 f handles f 0572 t handles t indexinS 1 indexinS 2 0573 S handles S indexinS 1 indexinS 2 0574 timeax t 0575 end 0576 0577 cmap gray 0578 th eval get handles TDerThresh String 0579 0580 if strcmp handles automethod threshold 0581 Stot boxcurve compute threshold free abs S th handles nsmooth 0582 axes handles axesP 0583 semilogy timeax Stot 0584 axis tight 0585 elseif strcmp handles automethod ratiof 0586 ratiof boxcurve compute index abs S handles lower range handles upper range fmin fmax handles indexthresh handles nsmooth 0587 axes handles axesP 0588 semilogy timeax ratiof 0589 axis tight 0590 end 0591 0592 hold on semilogy timeax boxcurve r hold off 0593 axes handles axesS 0594 imagesc timeax f S axis xy colormap cmap 0595 cmin 0 02 min min S cmax 0 02 max max S caxis cmin cmax 0596 0597 end 0598 0599 if handles firsttime first time precomputing the spectra 0600 handles S S 0601 handles t t 0602 handles f f 0603 handles precomputed spec 1 0604 handles firstime 0 0605 end 0606 0607 S log S 0608 Smax max max S 0609 Smin min min S 0610 Ssmall uint8 round S Smin Smax Smin 255 0611 0612 save uint8 test mat Ssmall mat 0613 save full rest mat S mat 0614 0615 handles times timeax 0616 handles transition diff boxcurve 0 0617 0618 set handles axesS XTick 0619 set handles axesP XTick 0620 0621 if exist handles datacursor 0622 delete handles datacursor 0623 delete handles segmentLineP 0624 delete handles segmentLineS 0625 delete handles segmentLineW 0626 end 0627 0628 handles datacursor datacursormode handles figure1 0629 axes handles axesP 0630 handles segmentLineP line Visible off 0631 axes handles axesS 0632 handles segmentLineS line Visible off 0633 axes handles axesW 0634 handles segmentLineW line Visible off 0635 0636 if get handles SegmentButton Value 0637 set handles datacursor Enable on DisplayStyle datatip SnapToDataVertex off UpdateFcn datacursorfunc 0638 end 0639 0640 guidata gcbo handles 0641 close hw 0642 handles draw segments handles 0643 0644 function Stot boxcurve compute threshold free S th n 0645 Computes the threshold based on a floating percentage of the maximum 0646 summed intensity 0647 Stot sum S 2 0648 boxcurve Stot 0649 smax max Stot 0650 0651 Stot smooth curve Stot n for removing extremes 0652 0653 boxcurve find Stot th smax smax th 0654 boxcurve find Stot th smax smax 0655 0656 function ratiof boxcurve compute index S lower range upper range lowerfreq upperfreq indexthresh n 0657 This algorithm is based on the method described in Aylin s 0658 dissertation 0659 0660 S S 0661 nfreqs length S 1 0662 freqspern upperfreq lowerfreq nfreqs 0663 0664 indexinlower fliplr nfreqs round lower range lowerfreq freqspern 0665 indexinupper fliplr nfreqs round upper range lowerfreq freqspern 1 0666 0667 nrangelower indexinlower 2 indexinlower 1 0668 nrangeupper indexinupper 2 indexinupper 1 0669 0670 ratiof sum S indexinupper 1 indexinupper 2 nrangeupper 0671 sum S indexinlower 1 indexinlower 2 nrangelower 0672 0673 0674 ratiof smooth curve ratiof n for smoothing the curve 0675 0676 maxrf max ratiof 0677 0678 boxcurve ratiof 0679 0680 boxcurve find ratiof indexthresh indexthresh 0681 boxcurve find ratiof indexthresh maxrf 0682 0683 function smoothedcurve smooth curve curve2smooth n 0684 Computes the moving average of the curve where n is an integer 0685 for example n 1 averages the current point with the point before and afterwards 0686 0687 m length curve2smooth 0688 if m 0 0689 curve2smooth repmat curve2smooth 1 1 n curve2smooth repmat curve2smooth m 1 n 0690 smoothedcurve zeros m 1 0691 0692 for i 1 m 0693 smoothedcurve i sum curve2smooth i i 2 n 2 n 1 0694 end 0695 else just to save computation time 0696 smoothed curve curve2smooth 0697 end 0698 0699 function MinFreq Callback hObject eventdata handles 0700 0701 function MinFreq CreateFcn hObject eventdata handles 0702 if ispc 0703 set hObject BackgroundColor white 0704 else 0705 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 0706 end 0707 0708 function MaxFreq Callback hObject eventdata handles 0709 function MaxFreq CreateFcn hObject eventdata handles 0710 if ispc 0711 set hObject BackgroundColor white 0712 else 0713 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 0714 end 0715 0716 Executes on selection change in SpectrumType 0717 function SpectrumType Callback hObject eventdata handles 0718 function SpectrumType CreateFcn hObject eventdata handles 0719 if ispc 0720 set hObject BackgroundColor white 0721 else 0722 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 0723 end 0724 0725 function AmpThresh Callback hObject eventdata handles 0726 function AmpThresh CreateFcn hObject eventdata handles 0727 if ispc 0728 set hObject BackgroundColor white 0729 else 0730 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 0731 end 0732 0733 function TDerThresh Callback hObject eventdata handles 0734 0735 Executes during object creation after setting all properties 0736 function TDerThresh CreateFcn hObject eventdata handles 0737 if ispc 0738 set hObject BackgroundColor white 0739 else 0740 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 0741 end 0742 0743 Executes on button press in PlayAll 0744 function PlayAll Callback hObject eventdata handles 0745 wavplay handles ts handles Fs 0746 0747 0748 Executes on button press in PlayWindow 0749 function PlayWindow Callback hObject eventdata handles 0750 wavplay handles ts handles Tmin handles Tmax handles Fs async 0751 0752 h handles axesP axes h semilogy timeax Stot axis tight 0753 0754 function txt datacursorfunc empt event obj 0755 pos get event obj Position 0756 handles guidata get event obj Target 0757 0758 set handles segmentLineP Xdata pos 1 pos 1 Ydata 0 00000000000001 pos 2 1000000000000 pos 2 Visible on 0759 set handles segmentLineS Xdata pos 1 pos 1 Ydata 0 00000000000001 pos 2 1000000000000 pos 2 Visible on 0760 set handles segmentLineW Xdata pos 1 pos 1 Ydata 100000000000 pos 2 1000000000000 pos 2 Visible on 0761 0762 if handles start stop enable 1 0763 set handles SegStartButton Enable on 0764 else 0765 set handles SegEndButton Enable on 0766 end 0767 0768 txt num2str pos 1 0769 guidata gcbo handles 0770 0771 function handles draw segments handles 0772 n 1 0773 while n length handles segments 0774 handles segments n lines 0775 handles segments n draw all x handles handles segments n 0776 n n 1 0777 end 0778 guidata gcbo handles 0779 0780 Executes on button press in SegmentButton 0781 function SegmentButton Callback hObject eventdata handles 0782 toggled get handles SegmentButton Value 0783 0784 if toggled 0785 handles segments 0786 handles segmentmode 1 0787 set handles SegmentButton String Segment On 0788 set handles SegmentButton Enable off 0789 if not exist handles filename seg txt 0790 set handles LoadSegments Enable off 0791 else 0792 set handles LoadSegments Enable on 0793 end 0794 set handles AutoSegmentFile Enable on 0795 set handles AutoSegButton Enable on 0796 set handles SegmentLengthEdit Enable on 0797 set handles SegmentLengthText Enable on 0798 set handles SaveSegments Enable on 0799 set handles DeleteSegment Enable on 0800 set handles DeleteAllButton Enable on 0801 set handles SegCancel Enable on 0802 set handles PlotSegments Enable on 0803 set handles LoadFile Enable off 0804 set handles LoadNext Enable off 0805 handles start stop enable 1 0806 set handles datacursor Enable on DisplayStyle datatip SnapToDataVertex off UpdateFcn datacursorfunc 0807 fprintf Segment mode on n 0808 else 0809 handles segmentmode 0 0810 set handles SegmentButton String Segment Off 0811 set handles AutoSegButton Enable off 0812 set handles AutoSegmentFile Enable off 0813 set handles SegmentLengthEdit Enable off 0814 set handles SegmentLengthText Enable off 0815 set handles LoadSegments Enable off 0816 set handles SaveSegments Enable off 0817 set handles SegStartButton Enable off 0818 set handles SegEndButton Enable off 0819 set handles DeleteSegment Enable off 0820 set handles DeleteAllButton Enable off 0821 set handles SegCancel Enable off 0822 set handles PlotSegments Enable off 0823 set handles LoadFile Enable on 0824 set handles LoadNext Enable on 0825 set handles datacursor Enable off 0826 fprintf Segment mode off n 0827 end 0828 guidata gcbo handles 0829 0830 0831 Executes on button press in SegStartButton 0832 function SegStartButton Callback hObject eventdata handles 0833 set handles LoadSegments Enable off 0834 set handles SegStartButton Enable off 0835 handles start stop enable 0 0836 xy get handles segmentLineP Xdata 0837 handles segment start xy 1 0838 handles segment lines 0839 axes handles axesP 0840 set handles segmentLineP LineWidth 3 0841 handles segment lines 1 handles segmentLineP 0842 handles segmentLineP line Visible off 0843 axes handles axesS 0844 set handles segmentLineS LineWidth 3 0845 handles segment lines 2 handles segmentLineS 0846 handles segmentLineS line Visible off 0847 axes handles axesW 0848 set handles segmentLineW LineWidth 3 0849 handles segment lines 3 handles segmentLineW 0850 handles segmentLineW line Visible off 0851 0852 guidata gcbo handles 0853 0854 Executes on button press in SegEndButton 0855 function SegEndButton Callback hObject eventdata handles 0856 set handles SegEndButton Enable off 0857 handles start stop enable 1 0858 xy get handles segmentLineP Xdata 0859 handles segment end xy 1 0860 handles segment draw all x handles handles segment 0861 handles segments handles segments handles segment 0862 guidata gcbo handles 0863 0864 function out draw all x handles segment 0865 segment draw x handles axesP segment 0866 segment draw x handles axesS segment 0867 segment draw x handles axesW segment 0868 out segment 0869 0870 function out draw x theaxes segment 0871 axes theaxes 0872 ylim get theaxes YLim 0873 segment lines segment lines line Xdata segment start segment start Ydata ylim LineWidth 3 0874 segment lines segment lines line Xdata segment end segment end Ydata ylim LineWidth 3 0875 segment lines segment lines line Xdata segment start segment end Ydata ylim LineWidth 3 0876 segment lines segment lines line Xdata segment start segment end Ydata ylim 2 ylim 1 LineWidth 3 0877 out segment 0878 0879 Executes on button press in JumpBack 0880 function JumpBack Callback hObject eventdata handles 0881 Jump shared hObject eventdata handles 1 0882 0883 Executes on button press in Jump 0884 function Jump Callback hObject eventdata handles 0885 Jump shared hObject eventdata handles 1 0886 0887 function Jump shared hObject eventdata handles jump dir 0888 Tim eval get handles DisplayWindow String 0889 tDuration str2num get handles Duration String 0890 maxTslider tDuration Tim tDuration 0891 NT min round Tim handles Fs length handles ts 0892 Tslider get handles slider1 Value 0893 Tslider Tslider jump dir Tim handles Fs length handles ts 0894 0895 if Tim tDuration 0896 set handles DisplayWindow String num2str tDuration 0897 Tslider 0 0898 end 0899 0900 0901 if jump dir 1 jumping forward 0902 if Tslider maxTslider 0903 Tslider maxTslider 0904 end 0905 end 0906 0907 if jump dir 1 jumping backwards 0908 if Tslider 0 0909 Tslider 0 0910 end 0911 end 0912 0913 0914 if Tslider 1 0915 Tslider length handles ts NT length handles ts 0916 end 0917 if Tslider 0 0918 Tslider 0 0919 end 0920 set handles slider1 Value Tslider 0921 guidata gcbo handles 0922 Plot Callback hObject eventdata handles 0923 0924 0925 function LoadNext Callback hObject eventdata handles 0926 0927 Get filename extension Look for next file with same extension no seg 0928 file associated 0929 0930 exclude name handles filename get handles ExcludeExt String 0931 if not exist exclude name 0932 fid fopen exclude name w 0933 fclose fid 0934 end 0935 0936 path cell2mat regexp handles filename match 0937 extension cell2mat regexp handles filename w match 0938 dirlist dir path extension 0939 ndir length dirlist 0940 n 1 0941 while n ndir 0942 file dirlist n name 0943 if not exist path file get handles ExcludeExt String 0944 break 0945 end 0946 n n 1 0947 end 0948 if n ndir 0949 set handles FileNameString String file 0950 handles filename path file 0951 guidata gcbo handles 0952 handles loadfile hObject eventdata handles 0953 else 0954 error No more files found matching desired pattern 0955 end 0956 0957 Executes on button press in Precompute 0958 function Precompute Callback hObject eventdata handles 0959 handles guidata gcbo 0960 toggled get hObject Value 0961 if toggled 0962 0963 Disable spectra configuration parameters 0964 0965 set handles DisplayWindow Enable off 0966 set handles WinSize Enable off 0967 set handles StepSize Enable off 0968 set handles TW Enable off 0969 set handles MinFreq Enable off 0970 set handles MaxFreq Enable off 0971 set handles SpectrumType Enable off 0972 set handles AmpThresh Enable off 0973 set handles TDerThresh Enable off 0974 set handles LoadNext Enable off 0975 set handles LoadFile Enable off 0976 0977 valueTslider get handles slider1 Value 0978 set handles slider1 Value 0 0979 strDuration get handles Duration String 0980 strWindow get handles DisplayWindow String 0981 0982 handles firsttime 1 indicates that the spectra need to be calculated 0983 0984 if str2num strDuration handles maxspec t 0985 strDuration num2str handles maxspec t 0986 end 0987 0988 set handles DisplayWindow String strDuration 0989 0990 Plot Callback handles Plot eventdata handles 0991 0992 handles guidata hObject 0993 0994 handles firsttime 0 0995 handles precomputed spec 1 0996 set handles DisplayWindow String strWindow 0997 set handles slider1 Value valueTslider 0998 Plot Callback handles Plot eventdata handles 0999 handles guidata hObject 1000 handles precomputed spec 1 1001 else 1002 handles precomputed spec 0 1003 1004 1005 Enable spectra configuration parameters 1006 1007 handles S release memory 1008 handles t 1009 handles f 1010 1011 set handles WinSize Enable on 1012 set handles StepSize Enable on 1013 set handles TW Enable on 1014 set handles MinFreq Enable on 1015 set handles MaxFreq Enable on 1016 set handles SpectrumType Enable on 1017 set handles AmpThresh Enable on 1018 set handles TDerThresh Enable on 1019 set handles LoadNext Enable on 1020 set handles LoadFile Enable on 1021 1022 end 1023 1024 guidata hObject handles 1025 1026 function Precompute CreateFcn hObject eventdata handles 1027 1028 function Path Callback hObject eventdata handles 1029 path get hObject String 1030 1031 1032 function Path CreateFcn hObject eventdata handles 1033 set hObject String pwd 1034 if ispc 1035 set hObject BackgroundColor white 1036 else 1037 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 1038 end 1039 1040 function Extensions Callback hObject eventdata handles 1041 1042 function Extensions CreateFcn hObject eventdata handles 1043 set hObject String wav 1044 if ispc 1045 set hObject BackgroundColor white 1046 else 1047 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 1048 end 1049 1050 function Duration CreateFcn hObject eventdata handles 1051 if ispc 1052 set hObject BackgroundColor white 1053 else 1054 set hObject BackgroundColor get 0 defaultUicontrolBackgroundColor 1055 end 1056 1057 function LoadSegments Callback hObject eventdata handles 1058 1059 handles load segment handles handles filename seg txt 1060 set handles LoadSegments Enable off 1061 handles draw segments handles 1062 guidata gcbo handles 1063 1064 function handles load segment handles filename 1065 fid fopen filename r 1066 segments 1067 scanned fscanf fid g g 2 inf 1068 n 1 1069 1070 while n size scanned 2 1071 segment start scanned 1 n 1072 segment end scanned 2 n 1073 segment lines 1074 segments segments segment 1075 n n

    Original URL path: http://www.chronux.org/Documentation/chronux/wave_browser/wave_browser.html (2015-03-27)
    Open archived version from archive

  • Description of nonst_stat
    next highest power of 2 etc e g For N 500 if PAD 1 we do not pad if PAD 0 we pad the FFT to 512 points if pad 1 we pad to 1024 points etc Defaults to 0 Fs sampling frequency optional Default 1 Output sigma nonstationarity index Thomson 2000 CROSS REFERENCE INFORMATION This function calls mtfftc Multi taper fourier transform continuous data This function is called by SOURCE CODE 0001 function sigma nonst stat data A sumV params 0002 0003 Nonstationarity test continuous process 0004 0005 Usage 0006 0007 sigma nonst test data A sumV params 0008 Input 0009 Note units have to be consistent See chronux m for more information 0010 data 1d array in samples required 0011 A quadratic coefficient matrix Compute this separately since 0012 the computation is time consuming A sumV quadcof N NW order order 0013 has to 4NW 0014 sumV sum of the quadratic inverse basis vectors 0015 params structure with fields tapers pad Fs fpass err trialave 0016 optional 0017 tapers precalculated tapers from dpss or in the one of the following 0018 forms 0019 1 A numeric vector TW K where TW is the 0020 time bandwidth product and K is the number of 0021 tapers to be used less than or equal to 0022 2TW 1 0023 2 A numeric vector W T p where W is the 0024 bandwidth T is the duration of the data and p 0025 is an integer such that 2TW p tapers are used In 0026 this form there is no default i e to specify 0027 the bandwidth you have to specify T and p as 0028 well Note that the units of W and T have to be 0029 consistent if W is in Hz T must be in seconds

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/continuous/nonst_stat.html (2015-03-27)
    Open archived version from archive

  • Description of den_jack
    is the jackknife variance CROSS REFERENCE INFORMATION This function calls jackknife Compute jackknife estimates of the mean and standard deviation of input data x This function is called by SOURCE CODE 0001 function m ll ul llj ulj den jack X family varargin 0002 Function to compute smooth estimates of the mean of x using locfit 0003 the corresponding confidence intervals and jackknife estimates of 0004 the confidence intervals 0005 Usage m ll ul llj ulj den jack x 0006 0007 Inputs 0008 X data in the form samples x trials 0009 family density or reg for regression 0010 If the family is density the entire input matrix X is considered 0011 as data If the family is regression then the first column of X is 0012 taken to be the independent variable and the remaining columns are 0013 regressed on this variable for example the first column may be 0014 the centers of the bins for binned spike count data 0015 varargin is the set of arguments used by locfit to perform the smoothing 0016 0017 Outputs 0018 m smoothed estimate of the mean 0019 ll estimate of the lower confidence level 0020 ul estimate of the upper confidence level 0021 llj jackknife estimate of the lower confidence level 2 sigma 0022 where sigma is the jackknife variance 0023 llu jackknife estimate of the upper confidence level 2 sigma 0024 where sigma is the jackknife variance 0025 N NT size X 0026 if strcmp family reg 0027 yy X 2 end 0028 y mean yy 2 0029 x X 1 0030 z scb x y varargin 0031 figure 0032 plot z 1 z 2 0033 hold on 0034 plot z 1 z 3 b 0035 plot z 1 z 4 b 0036 title Smoothed density estimate all data 0037

    Original URL path: http://www.chronux.org/Documentation/chronux/spectral_analysis/helper/den_jack.html (2015-03-27)
    Open archived version from archive



  •