2018-09-03 22:38:37 +00:00
|
|
|
# "mr" MATLAB Code Library Instructions #
|
2018-07-30 18:40:46 +00:00
|
|
|
|
2018-08-30 07:08:52 +00:00
|
|
|
## Installing the Library ##
|
|
|
|
|
|
2018-09-03 22:38:37 +00:00
|
|
|
Copy the "mr" folder to a known location on your computer. We will call the
|
|
|
|
|
path to this folder `$FOLDER_PATH/mr`.
|
2018-08-30 07:08:52 +00:00
|
|
|
|
|
|
|
|
## Importing the Library ##
|
|
|
|
|
|
|
|
|
|
To import the library, use `addpath` as
|
2018-07-30 18:40:46 +00:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
addpath('$FOLDER_PATH/mr')
|
|
|
|
|
```
|
|
|
|
|
|
2018-09-03 22:38:37 +00:00
|
|
|
This process is required for any program using this package.
|
2018-07-30 18:40:46 +00:00
|
|
|
|
2018-08-30 07:08:52 +00:00
|
|
|
## Using the Package ##
|
|
|
|
|
|
|
|
|
|
After importing the library, you should be able to use any function in the
|
|
|
|
|
library. Taking the function `RotInv` for example, you can check the
|
|
|
|
|
description and usage example of this function by running
|
2018-07-30 18:40:46 +00:00
|
|
|
|
|
|
|
|
```
|
2018-08-30 07:08:52 +00:00
|
|
|
help RotInv
|
2018-07-30 18:40:46 +00:00
|
|
|
```
|
|
|
|
|
|
2018-08-30 07:08:52 +00:00
|
|
|
As mentioned in the function usage example, you can try using this function
|
|
|
|
|
by running
|
2018-07-30 18:40:46 +00:00
|
|
|
|
|
|
|
|
```
|
2018-08-30 07:08:52 +00:00
|
|
|
R = [0, 0, 1; 1, 0, 0; 0, 1, 0];
|
|
|
|
|
invR = RotInv(R);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
You should get the the variable `invR` whose value is the same as the output
|
|
|
|
|
shown in the function usage example.
|
|
|
|
|
|
2018-09-03 22:38:37 +00:00
|
|
|
To check the function list and which chapter in the book those functions
|
2018-08-30 07:08:52 +00:00
|
|
|
belong to, use `help` as
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
help mr
|
2018-07-30 18:40:46 +00:00
|
|
|
```
|
|
|
|
|
|
2018-08-30 07:08:52 +00:00
|
|
|
## Library Information ##
|
2018-07-30 18:40:46 +00:00
|
|
|
|
|
|
|
|
Author: Huan Weng, Bill Hunt, Mikhail Todes, Jarvis Schultz
|
2018-07-30 18:46:41 +00:00
|
|
|
|
2018-07-30 18:40:46 +00:00
|
|
|
Contact: huanweng@u.northwestern.edu
|
2018-07-30 18:46:41 +00:00
|
|
|
|
2019-01-09 04:45:44 +00:00
|
|
|
Package Version: 1.1.0
|
2018-07-30 18:46:41 +00:00
|
|
|
|
2018-07-30 18:40:46 +00:00
|
|
|
Matlab Version: R2017b
|
2018-07-30 18:46:41 +00:00
|
|
|
|
2018-09-06 21:27:10 +00:00
|
|
|
Tested in Matlab R2017b
|