Info

此问题已关闭。 请重新打开它进行编辑或回答。

In this program one file is vr_ga.dat under which given data is there..Now i have to make one more file named as ss1.dat under which i have to load those results data....But after using this code data is not loaded........Until unless results are not

1 次查看(过去 30 天)
fid=fopen('C:\Users\hp\Documents\MATLAB\vr_ga.dat');
if(fid==-1);
disp('file vr_ga.dat can not be open');
end
rowmx=1000;
vrxmf1=zeros(rowmx,6);
vrxmf1(nrow,:)=[evreg xm freq csh1 nu otpr];
end
nrow=1; %...............printing in to file.............
for n1=1:nrow-1;
fprintf(fid,'%10.6f\t%10.6f\t%10.6f\t%7.4e\t%10.6f\t%10.6f\t\n',......
vrxmf1(n1,1),vrxmf1(n1,2), vrxmf1(n1,3), vrxmf1(n1,4), vrxmf1(n1,5),vrxmf1(n1,6));
end
fclose(fid);
fprintf(fid,'%8.4f %8.4f %8.4f %8.4f %8.4f %8.4f %8.4f %8.4f %8.4f %8.4f \n',prn,isss,irrms,pl,iLrms,vt,pin,xm,freq,rL);
A=load('C:\Users\hp\Documents\MATLAB\ss1.dat');
pr=A(:,1)
is=A(:,2)
ir=A(:,3)
pL=A(:,4)
iL=A(:,5)
vt=A(:,6)
xm=A(:,8)
freq=A(:,9)

回答(1 个)

swati paliwal
swati paliwal 2018-2-14
what editing you made Birdman???? This code is same only

此问题已关闭。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by