toggleToolbox

버전 1.2.0 (7 KB) 작성자: Rody Oldenhuis
Toggle MATLAB toolboxes on or off
다운로드 수: 521
업데이트 날짜: 2020/5/27

Utility to enable/disable MATLAB toolboxes.
S = TOGGLETOOLBOX()
S = TOGGLETOOLBOX('')
S = TOGGLETOOLBOX('all') queries the on/off states of all installed
toolboxes.

M = TOGGLETOOLBOX('names') returns the full names / directory names map
[M] applicable to the current MATLAB installation.

S = TOGGLETOOLBOX(toolbox, state) queries or sets the on/off state of the
MATLAB toolbox [toolbox] to [state]. The string or cellstring [toolbox] may
be equal to the toolbox' installation directory name (the same as used by
ver()), or the toolbox' full name. The string [state] may be one of 'on',
'off' or 'query'. The return argument [S] is a structure containing the
toolbox name(s) as fields, with the on/off state represented as true/false.

S = TOGGLETOOLBOX(..., permanency) for string [permanency] equal to
'permanent' will attempt to make the change persist between different
MATLAB sessions. For [permanency] equal to 'temporary' (the default), the
change will only last for the remainder of the current session.

TOGGLETOOLBOX(S0) will reset the on/off states of all toolboxes to the
states contained in [S0], where [S0] is a structure previously returned by
TOGGLETOOLBOX() as outlined above.

Disabling a toolbox is done by removing the relevant directories from the
MATLAB path. Since the order of the path is important for name resolution,
TOGGLETOOLBOX() attempts to keep the order of all paths as close to MATLAB's
startup path as possible. Calling TOGGLETOOLBOX() multiple times for different
toolboxes and arbitrary on/off states should not affect the overall path
order -- calling TOGGLETOOLBOX('all', 'on') afterwards results in a path
identical to the startup path.

Note that TOGGLETOOLBOX() generates a MAT file for both performance and
persistence between MATLAB sessions or across platforms. Please make sure
that TOGGLETOOLBOX() is located in a directory where it has write access.

EXAMPLE SESSION:

>> M = toggleToolbox('names')%
M =
'aero' 'Aerospace Toolbox'
'aeroblks' 'Aerospace Blockset'
'bioinfo' 'Bioinformatics Toolbox'
'comm' 'Communications Toolbox'
...

>> S = toggleToolbox({'Aerospace Toolbox' 'Wavelet Toolbox'}, 'query')
S =
aero: 1
wavelet: 1

>> w = ver('wavelet')
w =
Name: 'Wavelet Toolbox'
Version: '4.5'
Release: '(R2010a)'
Date: '25-Jan-2010'

>> S = toggleToolbox({'Aerospace Toolbox' 'Wavelet Toolbox'}, 'off');
>> toggleToolbox({'Aerospace Toolbox' 'Wavelet Toolbox'}, 'query')
ans =
aero: 0
wavelet: 0

>> w = ver('wavelet')
w =
0x0 struct array with fields:
Name
Version
Release
Date

>> toggleToolbox(S);
>> toggleToolbox({'Aerospace Toolbox' 'Wavelet Toolbox'}, 'query')
ans =
aero: 1
wavelet: 1

>> % Cross-platform developer mode:
>> S = toggleToolbox('all', 'off');

인용 양식

Rody Oldenhuis (2024). toggleToolbox (https://github.com/rodyo/FEX-toggleToolbox/releases/tag/v1.2.0), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Manage Products에 대해 자세히 알아보기
도움

줌: toggleToolbox 5G

Community Treasure Hunt

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

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.2.0

See release notes for this release on GitHub: https://github.com/rodyo/FEX-toggleToolbox/releases/tag/v1.2.0

1.1.0.2

See release notes for this release on GitHub: https://github.com/rodyo/FEX-toggleToolbox/releases/tag/v1.1.0.2

1.1.0.1

No code changes; just updated the FEX page title

1.1.0.0

No code change; just added the PayPal link
Added somewhat more intuitive state names 'enable' and 'disable', rather than just 'on' and 'off'.

1.0.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.