-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Frederic Depuydt
committed
May 23, 2019
1 parent
bdf64f0
commit defd0f9
Showing
41 changed files
with
537 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
librarydirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab\00. User-defined Functions'; | ||
global rootdirectory | ||
rootdirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
clear; | ||
clc; | ||
cd(fullfile(matlabroot,'toolbox','local')); | ||
getdirectories; | ||
addpath(genpath(librarydirectory)); | ||
cd(librarydirectory); | ||
savepath; | ||
%copyfile([funcdirectory '\startup.bak.m'],[mfilename('fullpath') '.m']); | ||
clear librarydirectory; | ||
|
||
global rootdirectory; | ||
cd(rootdirectory); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
funcdirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab\00. User-defined Functions'; | ||
global rootdirectory | ||
rootdirectory = 'C:\Users\Frederic Depuydt\Google Drive\Projects\Matlab'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
clear; | ||
clc; | ||
cd(fullfile(matlabroot,'toolbox','local')); | ||
getdirectories; | ||
addpath(genpath(funcdirectory)); | ||
cd(funcdirectory); | ||
savepath; | ||
%copyfile([funcdirectory '\startup.bak.m'],[mfilename('fullpath') '.m']); | ||
clear funcdirectory; | ||
|
||
global rootdirectory; | ||
cd(rootdirectory); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% %% COLOR CLASS %% | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % Author: Frederic Depuydt % | ||
% % Company: KU Leuven % | ||
% % Contact: [email protected]; [email protected] % | ||
% % Version: 1.0 % | ||
% % % | ||
% % A Color class to easily apply colors to plots % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % PROPERTIES % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: result = color.property % | ||
% % % | ||
% % ch1 Returning the color of scope channel 1 % | ||
% % ch2 Returning the color of scope channel 2 % | ||
% % ch3 Returning the color of scope channel 3 % | ||
% % ch4 Returning the color of scope channel 4 % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % FUNCTIONS (static) *Object creation* % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: objColor = color.function(var1, var2, ...) % | ||
% % % | ||
% % PROFIBUS() Returns PROFIBUS color % | ||
% % PROFIBUS('m') Returns PROFIBUS color for a MarkerFace % | ||
% % % | ||
% % PROFINET() Returns PROFINET color % | ||
% % PROFINET('m') Returns PROFINET color for a MarkerFace % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% Reference page in Doc Center | ||
% doc color | ||
% | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% %% COLOR CLASS %% | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % Author: Frederic Depuydt % | ||
% % Company: KU Leuven % | ||
% % Contact: [email protected]; [email protected] % | ||
% % Version: 1.0 % | ||
% % % | ||
% % A Color class to easily apply colors to plots % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % PROPERTIES % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: result = color.property % | ||
% % % | ||
% % ch1 Returning the color of scope channel 1 % | ||
% % ch2 Returning the color of scope channel 2 % | ||
% % ch3 Returning the color of scope channel 3 % | ||
% % ch4 Returning the color of scope channel 4 % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % FUNCTIONS (static) *Object creation* % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: objColor = color.function(var1, var2, ...) % | ||
% % % | ||
% % PROFIBUS() Returns PROFIBUS color % | ||
% % PROFIBUS('m') Returns PROFIBUS color for a MarkerFace % | ||
% % % | ||
% % PROFINET() Returns PROFINET color % | ||
% % PROFINET('m') Returns PROFINET color for a MarkerFace % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% Reference page in Doc Center | ||
% doc color | ||
% | ||
% | ||
% |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,68 @@ | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% %% ETH PACKET CLASS %% | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % Author: Frederic Depuydt % | ||
% % Company: KU Leuven % | ||
% % Contact: [email protected]; [email protected] % | ||
% % Version: 1.1 % | ||
% % % | ||
% % An ETHERNET class to analyse packets from Wireshark % | ||
% % and some Tektronix Osciloscopes. % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % FUNCTIONS (static) *Object creation* % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: objEth = eth.function(var1, var2, ...) % | ||
% % % | ||
% % csvread( Reading an EVENT TABLE CSV file % | ||
% % file, Filename + extension as String % | ||
% % verbose) Integer to enable verbose mode % | ||
% % % | ||
% % pcapread( Reading a Wireshark PCAP file % | ||
% % file, Filename + extension as String % | ||
% % verbose, Integer to enable verbose mode % | ||
% % captureFilter) Wireshark filter as String % | ||
% % % | ||
% % scoperead( Reading a Scope object % | ||
% % objScope, Scope object to read % | ||
% % verbose) Integer to enable verbose mode % | ||
% % % | ||
% % scoperead( Reading a Scope object % | ||
% % objScope, Scope object to read % | ||
% % parameter, A certain parameter % | ||
% % value, Value for the parameter % | ||
% % ...) Possible parameters: % | ||
% % 'verbose', 'threshold', % | ||
% % 'cut_off_frequency' % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % FUNCTIONS (non-static) % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: objEth.function(var1, var2, ...) % | ||
% % % | ||
% % plot( Plotting Ethernet Packets in Time % | ||
% % offset_x, % | ||
% % offset_y, % | ||
% % lineWidth, % | ||
% % line_color) % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % VERBOSE MODE: (default=-1) % | ||
% % all static functions check for a verbose variable % | ||
% % to enable or disable display output to the console % | ||
% % % | ||
% % verbose == 0; % Display output disabled % | ||
% % verbose == -1; % Display output enabled for all nested functions % | ||
% % verbose == x; % Display output enabled for x nested functions % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% Reference page in Doc Center | ||
% doc eth | ||
% | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% %% ETH PACKET CLASS %% | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % Author: Frederic Depuydt % | ||
% % Company: KU Leuven % | ||
% % Contact: [email protected]; [email protected] % | ||
% % Version: 1.1 % | ||
% % % | ||
% % An ETHERNET class to analyse packets from Wireshark % | ||
% % and some Tektronix Osciloscopes. % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % FUNCTIONS (static) *Object creation* % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: objEth = eth.function(var1, var2, ...) % | ||
% % % | ||
% % csvread( Reading an EVENT TABLE CSV file % | ||
% % file, Filename + extension as String % | ||
% % verbose) Integer to enable verbose mode % | ||
% % % | ||
% % pcapread( Reading a Wireshark PCAP file % | ||
% % file, Filename + extension as String % | ||
% % verbose, Integer to enable verbose mode % | ||
% % captureFilter) Wireshark filter as String % | ||
% % % | ||
% % scoperead( Reading a Scope object % | ||
% % objScope, Scope object to read % | ||
% % verbose) Integer to enable verbose mode % | ||
% % % | ||
% % scoperead( Reading a Scope object % | ||
% % objScope, Scope object to read % | ||
% % parameter, A certain parameter % | ||
% % value, Value for the parameter % | ||
% % ...) Possible parameters: % | ||
% % 'verbose', 'threshold', % | ||
% % 'cut_off_frequency' % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % FUNCTIONS (non-static) % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % usage: objEth.function(var1, var2, ...) % | ||
% % % | ||
% % plot( Plotting Ethernet Packets in Time % | ||
% % offset_x, % | ||
% % offset_y, % | ||
% % lineWidth, % | ||
% % line_color) % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% % % | ||
% % VERBOSE MODE: (default=-1) % | ||
% % all static functions check for a verbose variable % | ||
% % to enable or disable display output to the console % | ||
% % % | ||
% % verbose == 0; % Display output disabled % | ||
% % verbose == -1; % Display output enabled for all nested functions % | ||
% % verbose == x; % Display output enabled for x nested functions % | ||
% % % | ||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% | ||
% Reference page in Doc Center | ||
% doc eth | ||
% | ||
% | ||
% |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
% ethPHYdecode is a class. | ||
% obj = ethPHYdecode(varargin) | ||
% | ||
% Reference page in Doc Center | ||
% doc ethPHYdecode | ||
% | ||
% | ||
% |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
% PRINT TO IMAGE | ||
% |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
% Now filter function captures 3 groups: filter name, filter value | ||
% Now filter function captures 3 groups: filter name, filter value | ||
% | ||
% |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%getdirectories.bak is a script. | ||
% |
Binary file not shown.
Oops, something went wrong.