Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the way signalhunter add path #13

Open
vhosouza opened this issue Nov 29, 2016 · 1 comment
Open

Enhance the way signalhunter add path #13

vhosouza opened this issue Nov 29, 2016 · 1 comment
Assignees
Milestone

Comments

@vhosouza
Copy link
Collaborator

Signal Hunter add the current folder to the MATLAB path, so if user run signalhunter command from any path it will add every time it runs to the matlab path. If user has many folders in the current folder it can mess a lot the PATH of matlab.

@vhosouza vhosouza added this to the v1 milestone Nov 29, 2016
@vhosouza
Copy link
Collaborator Author

Functions to work with directory and file paths without knowing the OS:

filesep: returns the file sepparator character for the running OS
fileparts: returns the parts of a path, e.g. filename, path and file extension
fullfile: the best one, you give the parts of the path and it build the full path regardless the OS

Some examples:

My1stDir = 'Year2012';
My2ndDir = 'Feb';
My3rdDir = 'Day03';

MyDir = [ 'mydata', filesep, My1stDir, filesep, My2ndDir, filesep, My3rdDir ];
f = fullfile('myfolder','mysubfolder','myfile.m')

f =

myfolder\mysubfolder\myfile.m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants