Borrar filtros
Borrar filtros

How to cut multiple file ans past it to folder?

2 visualizaciones (últimos 30 días)
Faheem Ur Rehman
Faheem Ur Rehman el 3 de Ag. de 2021
Editada: Stephen23 el 3 de Ag. de 2021
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

Respuestas (2)

Yongjian Feng
Yongjian Feng el 3 de Ag. de 2021
Editada: Yongjian Feng el 3 de Ag. de 2021
mkdir 4ASK
for i=100:1000
copyfile(['frame4ASK' num2str(i) '.m'], 4ASK)

Stephen23
Stephen23 el 3 de Ag. de 2021
mkdir 4ASK
movefile frame4ASK*.m 4ASK

Categorías

Más información sobre Communications Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by