Info

This question is closed. Reopen it to edit or answer.

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 view (last 30 days)
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)

Answers (1)

swati paliwal
swati paliwal on 14 Feb 2018
what editing you made Birdman???? This code is same only

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!