Copyfile with variable as destination

5 visualizaciones (últimos 30 días)
Bradley Robert
Bradley Robert el 29 de Mayo de 2019
Comentada: Stephen23 el 29 de Mayo de 2019
I am trying to copy a folder (A) in a directory, to the same directory with a variable as a name, but Matlab doesn't recognize the variable
Example:
saveName = 1234_fMRI
copyfile = *fMR* saveName
This creates a new folder in the directory called "saveName" where it needs to be a folder called 1234_fMRI
Help. Please.
Brad R.

Respuesta aceptada

Walter Roberson
Walter Roberson el 29 de Mayo de 2019
saveName = '1234_fMRI'
copyfile('*fMR*', saveName)

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by