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..how can i load those data?

1 回表示 (過去 30 日間)
swati paliwal
swati paliwal 2018 年 2 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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)

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by