todo

matlab

up:2015-04-28 09:09:52 edit:2015-04-28 09:55:26 view:1137


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

TAGS: matlab

not in sinaapp