필터 지우기
필터 지우기

Matlab directory; keeping addpath compatible between my linux and windows

조회 수: 4 (최근 30일)
Hi Folks,
i am storing my tools from Filexchange in z.B /home/moritz/matlab/tools and D:\moritz\matlab\tools
does anyone know how to write the addpath line in functions or skripts so that i would not have to change this line everytime i skip to my laptop ?
A try catch phrase would probably work.
Best regards
Moritz

채택된 답변

Jos (10584)
Jos (10584) 2014년 2월 19일
if ispc
disp('I am sorry for you ;-)') ;
addpath ('d:\moritz\matlab\tools')
else
addpath('/home/ … ')
end
Also see ISUNIX, ISMAC. In addition, the function FULLFILE might also be interesting to you.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by