Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UBC_PC_Setup-template

Template for Micromet-specific Matlab installation

  • After cloning the repo, you will have the UBC_PC_Setup-template folder on your compueter. Note clone it to C: drive for PCs or ~/Users/youruser for macs.

  • Next, create a new folder on your computer named UBC_PC_Setup.

  • Then move the folders PC_specific and Site_specific from UBC_PC_Setup-template to UBC_PC_Setup. The folders should now be set up as (or something similar depending on your preferences):

PC MacOS
c:\UBC_PC_Setup\PC_specific ~/Users/youruser/UBC_PC_Setup/PC_specific
c:\UBC_PC_Setup\Site_specific ~/Users/youruser/UBC_PC_Setup/Site_specific
  • Next in PC_specific:
  1. Edit user_set.m: Change only the first line so the user_dir variable points to your default Matlab folder (the folder you want to put your personal Matlab files by default): I suggest something like:
PC MacOS
c:\your_name\Matlab\ ~/Users/youruser/Matlab/
c:\UBC_PC_Setup\Matlab\ ~/Users/youruser/

Or you can use any other folder name that you like as long as you have write privileges for it

Leave the rest as is then save the file.

  1. Edit fr_get_pc_name.m:
  • nameX = 'your PC's or mac’s name goes here, anything that you want'

  • locX = 'Geog'

  • Save fr_get_pc_name.m

  1. For MacOS edit startup.m:
  • Replace your_name on lines 82-96 with with your home folder name (e.g., sara). To find your home folder, open Finder and use the keyboard shortcut Command-Shift-H.
  1. Next:
  • Run Matlab
  • Click on the Home tab
  • Select Set Path
  • Add Folder > PC_specific

Alt text

At this point Matlab may throw a fit and start complaining that the file cannot be saved into the default folder.
You may need to save it somewhere else (e.g., c:\UBC_PC_Setup\UBC_PC_specific or ~/Users/youruser/UBC_PC_Setup/UBC_PC_specific) but that may or may not work.
Talk to Zoran if you get stuck here.

  1. Restart Matlab

Note that Matlab will automatically (through startup.m) add the Biomet.net paths just for that session. It's not set it permanently on the path because we occasionally want to be able to restore Matlab path to Biomet.net free state by typing >> path(pathdef).

If you are connected to UBC.geog VPN & are connected to vinimet, type "view_micromet" in Matlab and see if it works.

To connect to vinimet on MacOS:

  • In the Finder on your Mac, choose Go > Connect to Server.
  • Then connect to smb://vinimet.geog.ubc.ca > Projects & type in the password.

Congratulations, you got Matlab working! Or you might need to talk to Zoran again ;-)

  1. If you got Matlab working, go back to the Biomet.net README.md and follow the instructions of step #3 (Creating a local copy of the database on your computer)

About

Template for Micromet-specific Matlab installation

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages