-1
function box1( l, m)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here

%Define parameter 

M1=[l, m];


fin=fopen('d://box1.txt','wt');

fprintf(fin,'      XY                   %g:     %g \n',M1);
4

1 回答 1

0

是要迭代的lm列向量吗?在这种情况下,您可以编写:

for k=1:size(M1,1)
fprintf(fin,'      XY                   %g:     %g \n',M1(k,:);
end
fclose(fid);

不过,如果你能澄清一下就更好了。

于 2012-04-29T23:30:30.617 回答