Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

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


Problem Group

Solution Statistics

11 correct solutions 24 incorrect solutions
Last solution submitted on May 08, 2015