Effacer les filtres
Effacer les filtres

how to change directory?

4 vues (au cours des 30 derniers jours)
riki singh
riki singh le 4 Juil 2022
Réponse apportée : Siraj le 4 Juil 2022
Error using actxserver
Server creation failed. Invalid ProgID 'CSTStudio.application.2019'.
%this direc is default set to:-
direc ='C:\Program Files\Avast Software\Avast\1033'
macroDir = fullfile(direc,'CST_App Macros')
%at this point my directory is C:\Program Files\Avast Software\Avast\1033\CST_App Macros'
% how to save it to my directory
direc1 ='E:\MS FILE\101MSDCF DEC2014-17'
macroDir1 = fullfile(direc1,'CST_App Macros')
%and i want my directory to be E:\MS FILE\101MSDCF DEC2014-17\CST_App Macros'
2018a version
  1 commentaire
KSSV
KSSV le 4 Juil 2022
Read about cd

Connectez-vous pour commenter.

Réponses (1)

Siraj
Siraj le 4 Juil 2022
Hii,
It is my understanding that the variable "macroDir1" has the full path of the directory. Now if you want to switch your workspace to macroDir1 then you can use the "cd" command.
cd(macroDir1)
Refer to the documentation for more on cd in MATLAB.
Hope it helps

Catégories

En savoir plus sur Search Path dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by