forked from episodes-platform/shared-snippets
Add licensing to matlab files
This commit is contained in:
parent
0894348bab
commit
ee5a68f833
@ -1,3 +1,8 @@
|
|||||||
|
%
|
||||||
|
% -----------------
|
||||||
|
% Copyright © 2022 ACK Cyfronet AGH, Poland.
|
||||||
|
% -----------------
|
||||||
|
%
|
||||||
function [sortedCatalog] = sortByTime(catalog)
|
function [sortedCatalog] = sortByTime(catalog)
|
||||||
timeColIndex = find(strcmp('Time', {catalog.field}));
|
timeColIndex = find(strcmp('Time', {catalog.field}));
|
||||||
if ~isempty(timeColIndex)
|
if ~isempty(timeColIndex)
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
%
|
||||||
|
% -----------------
|
||||||
|
% Copyright © 2022 ACK Cyfronet AGH, Poland.
|
||||||
|
% -----------------
|
||||||
|
%
|
||||||
function km = deg2km(deg)
|
function km = deg2km(deg)
|
||||||
%DEG2KM Convert distance from degrees to kilometers
|
%DEG2KM Convert distance from degrees to kilometers
|
||||||
%
|
%
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
%
|
||||||
|
% -----------------
|
||||||
|
% Copyright © 2022 ACK Cyfronet AGH, Poland.
|
||||||
|
% -----------------
|
||||||
|
%
|
||||||
function angleInRadians = deg2rad(angleInDegrees)
|
function angleInRadians = deg2rad(angleInDegrees)
|
||||||
% DEG2RAD Convert angles from degrees to radians
|
% DEG2RAD Convert angles from degrees to radians
|
||||||
%
|
%
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
%
|
||||||
|
% -----------------
|
||||||
|
% Copyright © 2022 ACK Cyfronet AGH, Poland.
|
||||||
|
% -----------------
|
||||||
|
%
|
||||||
function deg = km2deg(km)
|
function deg = km2deg(km)
|
||||||
%KM2DEG Convert distance from kilometers to degrees
|
%KM2DEG Convert distance from kilometers to degrees
|
||||||
%
|
%
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
%
|
||||||
|
% -----------------
|
||||||
|
% Copyright © 2022 ACK Cyfronet AGH, Poland.
|
||||||
|
% -----------------
|
||||||
|
%
|
||||||
function angleInDegrees = rad2deg(angleInRadians)
|
function angleInDegrees = rad2deg(angleInRadians)
|
||||||
% RAD2DEG Convert angles from radians to degrees
|
% RAD2DEG Convert angles from radians to degrees
|
||||||
%
|
%
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
%
|
||||||
|
% -----------------
|
||||||
|
% Copyright © 2022 ACK Cyfronet AGH, Poland.
|
||||||
|
% -----------------
|
||||||
|
%
|
||||||
function s = second(d,f)
|
function s = second(d,f)
|
||||||
%SECOND Seconds of date or time.
|
%SECOND Seconds of date or time.
|
||||||
% S = SECOND(D) returns the seconds given a serial date number or a
|
% S = SECOND(D) returns the seconds given a serial date number or a
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
|
%
|
||||||
|
% -----------------
|
||||||
|
% Copyright © 2022 ACK Cyfronet AGH, Poland.
|
||||||
|
% -----------------
|
||||||
|
%
|
||||||
function [wc]=wavecut(wf,startp,endp)
|
function [wc]=wavecut(wf,startp,endp)
|
||||||
|
|
||||||
wc=wf(round(startp):round(endp));
|
wc=wf(round(startp):round(endp));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user