How to cut multiple file ans past it to folder?

I have fram4ASK100.mat to fram4ASK1000.mat in a folder and i want to cut them and past them intp new folder name as 4ASK.
I have tried follwoing code but it does't work
for i=100:1000
mkdir 4ASK
copyfile frame4ASK(i).m 4ASK

Answers (2)

mkdir 4ASK
for i=100:1000
copyfile(['frame4ASK' num2str(i) '.m'], 4ASK)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 3 Aug 2021

Edited:

on 3 Aug 2021

Community Treasure Hunt

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

Start Hunting!