Main Content

La traduzione di questa pagina non è aggiornata. Fai clic qui per vedere l'ultima versione in inglese.

Gestione del file di progetto

Cercare, etichettare, elaborare in batch, condividere e aggiornare i file di progetto e creare script

I progetti costituiscono un supporto per l’organizzazione di progetti di modellazione di grandi dimensioni, grazie al reperimento dei file necessari, alla gestione e condivisione dei file e delle impostazioni, nonché l’interazione con il controllo della sorgente. Vedere What Are Projects? e guardare Using Projects to Collaborate, Track, and Merge Changes and Perform Code Reviews (4 min, 50 sec) (Utilizzare i progetti per collaborare, tracciare e unire le modifiche ed eseguire revisioni di codice).

Funzioni

espandi tutto

currentProjectGet current project
addLabelAttach label to project file
addPathAdd folder to project path
addReferenceAdd referenced project to project
addShortcutAdd shortcut to project
createCategoryCreate category of project labels
createLabelCreate project label
exportExport project to archive
findCategoryFind project category of labels
findFileFind single project file by name
findLabelGet project file label
isLoadedDetermine if project is loaded
reloadReload project
removeCategoryRemove project category of labels
removeLabelRemove label from project
runChecksRun all project checks (Da R2020a)
matlab.project.isUnderProjectRootDetermine whether file or folder is under project root folder (Da R2023a)
matlab.project.isFileInProjectDetermine whether file or folder belongs to project (Da R2023b)

API Legacy

simulinkproject(Not recommended) Open project and get project object
slproject.loadProject(Not recommended) Load project
slproject.getCurrentProjects(Not recommended) List all top-level projects

Argomenti

Script

Attività più frequenti

Gestione del file

Etichette del file

  • Create Labels
    In a project, use labels to organize files and communicate information to project users.
  • Add Labels to Files
    In a project, use labels to organize files and communicate information to project users.
  • View and Edit Label Data
    When you select a file in the project Files view, the file labels appear in the label editor view.

Elaborazione di attività personalizzate

Condivisione dei progetti

  • Archive Projects
    Package and share project files in an archive file, for example to share with others who do not have access to the connected source control tool.
  • Share Project by Email
    To package and share project files on Windows®, you can email your project as an archive file.
  • Share Project as a MATLAB Toolbox
    To package and share project files, create a MATLAB toolbox from your project.
  • Share Project on GitHub
    To share your project, make your project publicly available on GitHub®.

Aggiornamento dei progetti

Test dei progetti

Informazioni sui progetti

  • What Are Projects?
    Use projects to help you organize your work. Find all your required files; manage and share files, settings, and user-defined tasks; and interact with source control.
  • What Can You Do with Project Shortcuts?
    In a project, use shortcuts to make it easy for any project user to find and access important files and operations.
  • Sharing Projects
    Collaborate by sharing projects by email, archive file, template, MATLAB toolbox, or on GitHub.