MATLAB Help Center
Remove shortcut from project
removeShortcut(proj,shortcuts)
removeShortcut(proj,shortcuts) removes the specified shortcuts from the specified project.
proj
shortcuts
example
collapse all
Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.
currentProject
openExample("matlab/TimesTableProjectExample") proj = currentProject;
Create a new file.
filepath = fullfile(proj.RootFolder,"newVariables.mat"); save(filepath)
Add this new file to the project.
projectFile = addFile(proj,filepath)
Add a new shortcut to the new file.
shortcut = addShortcut(proj,filepath);
Remove the shortcut.
removeShortcut(proj,shortcut);
matlab.project.Project
Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently loaded project.
Shortcut
Shortcut to remove, specified as a string array, a cell array of character vectors, or an array of Shortcut objects.
expand all
Starting in R2025a, the removeShortcut function supports remove multiple project shortcuts from the project at the same time.
removeShortcut
currentProject | openProject | addShortcut
openProject
addShortcut
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office