Getting Started (MATLAB Version)

In order to use MATLAB version of ScientiMate library, first, one of the MATLAB or GNU Octave programming language along with required toolboxes should be installed (Refer to required packages for MATLAB/GNU Octave).

Installation

To use MATLAB version of ScientiMate library:

Add ScientiMate folder to MATLAB or GNU Octave path

You may access ScientiMate by copying ScientiMate files and its sub-folders to your desire working directory and then use them there. However, a better option is to add ScientiMate folder to MATLAB or GNU Octave path. By doing that, you always have access to ScientiMate from any working directory. Remember, you need to add ScientiMate to path only once.

To add ScientiMate folder to MATLAB or GNU Octave path, you may use a provided add_scientimate_to_path.m file or you can do it manually in the command window.

Add ScientiMate folder to MATLAB or GNU Octave path using add_scientimate_to_path.m

  • Open MATLAB or GNU Octave
  • Change a current folder (working directory) to a folder that contains ScientiMate files, for example “C:\scientimate”, in MATLAB or GNU Octave.
  • Run a file named add_scientimate_to_path.m in MATLAB or GNU Octave to add ScientiMate folder to MATLAB or GNU Octave path.

Add ScientiMate folder to MATLAB or GNU Octave path manually in the Command Window

For example, if ScientiMate files are in “C:\scientimate” folder then it can be added to path as:

ScientiMatePath = genpath('C:\scientimate'); %Generating path for ScientiMate folder and its sub-folders
addpath(ScientiMatePath); %Add ScientiMate folder to path

To remove ScientiMate from the path use:

ScientiMatePath = genpath('C:\scientimate'); %Generating path for ScientiMate folder and its sub-folders
rmpath(ScientiMatePath); %Remove ScientiMate folder from path
%restoredefaultpath; %Restore path to factory-installed state

Operating System

This code can be run on Windows, Mac and Linux. However, make sure any given path is compatible with a running operating system. In particular, “\” is used in Windows path, while “/” is used in Mac or Linux path. For example, if a path is “C:\” on Windows machine, it would be “C:/” on Mac or Linux.

Required Programing Language

The MATLAB version of this toolbox can be run by using MATLAB (https://www.mathworks.com) or GNU Octave (https://www.gnu.org/software/octave).

Required Package for MATLAB

MATLAB users may need to install additional MATLAB Toolboxes such as Signal Processing Toolbox for some functions.

Required Package for GNU Octave

GNU Octave users may need to install/load additional packages such as GNU Octave Signal Package for some functions.

For example, GNU Octave Signal Package can be loaded inside GNU Octave by using a following command in the command window (This should be done every time GNU Octave is opened):

>> pkg load signal

If GNU Octave Signal Package is not already installed, it should be first installed from Octave Forge (https://octave.sourceforge.io), and then get loaded by using the following commands in the command window:

>> pkg install -forge signal
>> pkg load signal

Quick Start

x(:,1)=linspace(1,10,10);
y(:,1)=1+rand(10,1);
y(:,2)=2+rand(10,1);
plot2d(x,y,'line_confid','blue_red','large')