Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Problem 1866. Usage of mkdir and copyfile

Created by Richard Zapor

This Challenge is to copy a file into a new directory multiple levels below existing directory architecture.

System appears to be unix and thus use '/' versus '\' which is for windows.

Typical starting folder is /users/msssystem19. The file will be copied to /users/msssystem19/level/files.

Input: [sub_folder_path, filetocopy] File to copy is in current folder

Output: None but file must be copied to defined sub_folder location

Tags

Problem Group

Solution Statistics

10 correct solutions 24 incorrect solutions
Last solution submitted on Feb 06, 2015