フィルターのクリア

How to cut multiple file ans past it to folder?

2 ビュー (過去 30 日間)
Faheem Ur Rehman
Faheem Ur Rehman 2021 年 8 月 3 日
編集済み: Stephen23 2021 年 8 月 3 日
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

回答 (2 件)

Yongjian Feng
Yongjian Feng 2021 年 8 月 3 日
編集済み: Yongjian Feng 2021 年 8 月 3 日
mkdir 4ASK
for i=100:1000
copyfile(['frame4ASK' num2str(i) '.m'], 4ASK)
  1 件のコメント
Stephen23
Stephen23 2021 年 8 月 3 日
編集済み: Stephen23 2021 年 8 月 3 日
This answer will not work because its author does not appreciate the difference between command syntax and function syntax:

サインインしてコメントする。


Stephen23
Stephen23 2021 年 8 月 3 日
mkdir 4ASK
movefile frame4ASK*.m 4ASK

カテゴリ

Help Center および File ExchangeCommunications Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by