Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 1def5532c3cefeba955129117e8c23abb7643cf8 authored by Max's Office PC on 20 November 2019, 03:30:51 UTC, committed by Max's Office PC on 20 November 2019, 03:30:51 UTC
Merge branch 'Master' of https://github.com/RaymondLab/Code into Master
2 parent s 08f15ff + 964f3bd
  • Files
  • Changes
  • 4d2e3a8
  • /
  • Projects
  • /
  • Sriram - Akira's Complex Spikes
  • /
  • CF_Initial.m
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:1def5532c3cefeba955129117e8c23abb7643cf8
directory badge Iframe embedding
swh:1:dir:47a378a6527d395b6072d70002c99d294af1f3c7
content badge Iframe embedding
swh:1:cnt:41f723a3a576bc3cbb4e493faf7e6293226ba6d0

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
CF_Initial.m
%% Set Up
clear;clc;close all
dbstop if error
%files = dir('C:\Users\maxwellg\OneDrive\04 Work\01 Stanford - LSRP\CF Project\Data\D1_1995\**\**');
%files = dir('C:\Users\maxwellg\OneDrive\04 Work\01 Stanford - LSRP\CF Project\Data\D1_1995\da0208');
%files = dir('C:\Users\maxwellg\Documents\CF_Project\Data\D2_1995\da0315');
%files = dir('C:\Users\maxwellg\Documents\CF_Project\Data\D2_1995\**\**');
files = dir('G:\My Drive\Expmt Data\2019_05 - Akira and Sriram Complex Spikes\**\**');%Unit data files\Unit data files\2005');
%files = dir('G:\My Drive\Expmt Data\2019_05 - Akira and Sriram Complex Spikes\Unit data files\Unit data files\2005');

% remove . and .. files
%files(~contains({files.name}, '.0')) = [];

% figure inital setup
q = figure('units','normalized','outerposition',[0 0 1 1]);
ha = tight_subplot(7,1,[.005 .005],[.015 .015],[.005 .005]);

do = 1;
%% Open File
for j = 1:length(files)

    clc
%     for qq = 1:30
%         qq
%         RawRecording = readcxdata(fullfile(files(j).folder, files(j).name), 0, qq)
%         clc
%     end


    RawRecording = readcxdata(fullfile(files(j).folder, files(j).name), 0, 7)
    if isempty(RawRecording.data)
        continue
    end

    fullfile(files(j).folder, files(j).name)
    DatRecording = opensingleMAXEDIT(fullfile(files(j).folder, files(j).name), 0);
    clf(ha);
    t = linspace(DatRecording(1).tstart, DatRecording(1).tend, length(DatRecording(1).data));

    if do
        for i = 1:(length(DatRecording))

            % Plot
            plot(ha(i), t(1:length(DatRecording(i).data)), DatRecording(i).data)
            hold on
            hline(0, ':r')

            %title
            set(ha(i).Title, 'String', DatRecording(i).chanlabel)
            ha(i).Title.Units = 'normalized';
            ha(i).Title.Position = [.5 .9 0];

            % y axis
            ylabel(DatRecording(i).units)
            set(ha(i), 'TickDir', 'in')
            set(ha(i),'ytick',min(DatRecording(i).data):50:max(DatRecording(i).data))
            set(ha(i),'yticklabel',[])

            % x axis
            set(ha(i), 'xlim', [0, 1.005*max(t)])
            set(ha(i),'xtick',0:10:max(t))
            if i ~= (length(DatRecording))
                set(ha(i),'xticklabel',[])
            end

%             if i == 6
%                 figure(2)
%                 b = scatter(DatRecording(i).data, ones(length(DatRecording(i).data), 1), 'filled', 'SizeData', 10);
%                 hold on
%                 plot(t(1:length(DatRecording(1).data)), DatRecording(1).data)
%             end

            box(ha(i),'off')
        end
    end

end
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API