I have a student version of MATLAB called r2009
I did use curly brackets instead of parentheses so that is a mistake in my code written here. Furthermore, files.name indeed gives the full name so when i use the save command and add the extension .xy with cEXT{1,1} then it returns name.sp.xy...
I've been able to implement it and it works! The only thing now is that i load all the files with:
files = dir('Input\*.sp');
and then recall the names of the files with: files(j).name. In this case the names of the files include the extension .sp. so when i later save the file like...
probably the best way is to store them in a vector. You define a vector called v_max with a length equal to the amount of values, in your case that is 6:
v_max=[1:6];
then you can store each value in one of the positions of the maxtrix like:
for n=5:1:10
v_max(1,n-4) =...
for a project i have to open, edit and save a varying amount of files. I use a MATLAB code for this. It works fine and imports all the .sp files in the directory with the fopen() command. The only problem i still have is that i also want to change the extension of the files. Right now i use...