here jj will be the value of FN, but the trouble is iam getting a error message
??? Error using ==> fopen Invalid filename.
DirName = 'Samples\mattest\jj';
FileName = split('\\',DirName);
[a,b] = size(FileName);
FN = FileName(b);
file_1 = fopen(FN,'w');
split method was found at http://www.mathworks.com/matlabcentral/fileexchange/4873
Doesnt the code seem correct ? Could someone please help me ?