how to rename file n do loop.

조회 수: 3 (최근 30일)
Matmien
Matmien 2011년 11월 27일
hello/hai
when i download file(zip) from internet > Unzip file
but the problem file name in alphabet.
1)how to do looping?
this is a file isk1210b.11o
2)how to save in different file(directory)
thak u
this in my command:
function out=multipathmapping
ftpsite=ftp('xx.my','xx','xx');
cd(ftpsite, 'ISK1/Hourly/210');
mget(ftpsite, 'isk1210b.zip');
unzip('isk1210b','C:\Multipath3SGU\studycase');
a = 'C:\Multipath3SGU\studycase\isk1210b.11o';%directory the obs
teqc_cm = sprintf('C:\\Multipath3SGU\\studycase\\teqc +qc %s',a);% directory teqc and the command of teqc
system(teqc_cm);%run DOS
out=teqcspec;
  댓글 수: 2
Jan
Jan 2011년 11월 27일
I do not understand the question.
What does "but the problem file name in alphabet" mean?
Matmien
Matmien 2011년 12월 3일
yes,about aplhabet
how to download more file(isk1210b,isk1210c,isk1210c) use this command:
mget(ftpsite, 'isk1210b.zip');

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2011년 11월 27일
  댓글 수: 1
Matmien
Matmien 2011년 12월 3일
how about sequence alphabet?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by