How to cut multiple file ans past it to folder?
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
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
댓글 수: 0
답변 (2개)
  Yongjian Feng
    
 2021년 8월 3일
        
      편집: Yongjian Feng
    
 2021년 8월 3일
  
      mkdir 4ASK
for i=100:1000
    copyfile(['frame4ASK' num2str(i) '.m'], 4ASK)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!