function [ output_args ] = mat2txt( input_args )
%MAT2TXT Summary of this function goes here
%   Detailed explanation goes here
matfiles=struct2cell( dir('*.mat'));
for i=1:length(matfiles)
    %clear;
    clearvars -except matfiles i;
    %disp(matfiles{1,i});
    matff=matfiles{1,i};
    disp(matff);
    B1={0};
    load (matff);
    b1=B1{1,1};
    %disp(b1);
    outfile=[matff,'.txt'];
    dlmwrite(outfile,b1,'newline','pc');
end;
end