How to change a part of a string particularly part of a folder and a file address?
1 次查看(过去 30 天)
显示 更早的评论
I want to change a part of a address in a loop...what is the simplest way for doing it?!
fileDImax=fopen('1\1\data\ParkAngDImax11.txt','w+');
fileDImax=fopen('1\1\data\ParkAngDImax21.txt','w+');
.
.
.
fileDImax=fopen('1\2\data\ParkAngDImax11.txt','w+');
fileDImax=fopen('1\2\data\ParkAngDImax21.txt','w+');
.
.
.
fileDImax=fopen('2\1\data\ParkAngDImax11.txt','w+');
fileDImax=fopen('2\1\data\ParkAngDImax21.txt','w+');
.
.
.
0 个评论
采纳的回答
Image Analyst
2013-5-10
Please read the FAQ for several code examples: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F. It will tell you what you need to know to do this.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!