0
여기에 matlab에 새로운, csvwrite tutorial 및 내 질문에 관한 기존의 webportals 검색 CSV로 내보내는 동안 출력 파일 이름에 값으로 내 변수를 전달하는 방법을 찾을 수 없습니다 ; 내 울부 짖는 소리 스크립트를 제공, 나는 같은 출력 파일을 가지고 싶습니다 output_$aa_$dd.csv
aa와 dd는 각각 첫 번째와 두 번째는 스크립트의 카운터에 대한.csvwrite에서 matlab에 번호가 매겨진 파일 이름과 루프에
for aa=1:27
for dd=1:5
M_Normal=bench(aa,dd).Y;
for j=1:300
randRand=M_Normal(randperm(12000,12000));
for jj = 1:numel(randMin(:,1)); % loops over the rand numbers
vv= randMin(jj,1); % gets the value
randMin(jj,j+1)=min(randRand(1:vv)); % get and store the min of the selction in the matix
end
end
csvwrite('/home/amir/amir_matlab/sprintf(''%d%d',aa, bb).csv',randMin);
end
end
건배;) 그리고 마지막으로 출력을위한 매트릭스를 언급해야한다고 생각합니다. 맞습니까? 'fullfile ('home', 'amir', 'amir_matlab', sprintf ('% d_ % d.csv', aa, bb), randMin) ' – Amir
예,'csvwrite'의 두 번째 인수입니다. – heriantolim