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

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.

  • content
content badge
swh:1:cnt:65a6961959ec11084f16d9a720fabebd382008b2

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.

  • content
(requires biblatex-software package)
Generating citation ...
function freqSpec(data, samplerate)
% Plot the requency spectrum of all channels in a signal --> default 32
% channels

plotSize = [8,4];

fs = figure();
%fs.Visible = 'off';
ka = tight_subplot(plotSize(1),plotSize(2),[0 0],[0 0],[0 0]);

for i = 1:size(data,1)
    sig = data(i,:);
    
    % Calculate 
    L = length(sig);
    Y = fft(sig);
    P2 = abs(Y/L);
    P1 = P2(1:L/2+1);
    P1(2:end-1) = 2*P1(2:end-1);
    f = samplerate*(0:(L/2))/L;
    
    % plot
    plot(ka(i),f,P1,'Color',[0 0.4470 0.7410]) 
    
    % cosmetics
    ka(i);
    vline(3183.5)
    hold on
    
    set(ka(i),'xtick',[0:50:2000])
    set(ka(i), 'TickDir', 'in')
    box(ka(i),'off')    
    set(ka(i),'xticklabel',[])
    
    set(ka(i),'ytick',[])
    set(ka(i),'yticklabel',[])
    box(ka(i), 'off')
    
end
linkaxes(ka)
ylim([0 50])
xlim([0 3500])
fs.Visible = 'on';

back to top

Software Heritage — Copyright (C) 2015–2026, 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