Changeset cdd676e in sasmodels for explore/beta/testPolyDiseperseSphricalBeta.m
- Timestamp:
- Jul 9, 2018 8:58:51 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 502c7b8
- Parents:
- 9f2216f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explore/beta/testPolyDiseperseSphricalBeta.m
r0076d6e rcdd676e 3 3 4 4 R0=20; %mean radius. unit: Angstroms 5 PDI=0.1 5; %unit: relative polydispersity5 PDI=0.1; %unit: relative polydispersity 6 6 volF=0.1; 7 7 contrast=6e-6; %contrast,angstrom^-1, scattering length density difference 8 8 9 Filename='testPolydisperseGaussianSphere 2.dat';9 Filename='testPolydisperseGaussianSphere.dat'; 10 10 11 11 Q=[0.001:0.001:0.8]; … … 57 57 NormIQN=IQN/IQN(1); 58 58 59 FileString=strcat('Filename:',Filename, '**R0=', num2str(R0),'**PDI=', num2str(PDI),...60 '**contrast',num2str(contrast), '**volF=',num2str(volF));61 Outputformat='File format : Q, <FQ>, <FQ>^2, <FQ^2>, betaQ, SQ, SQ_Eff';62 63 59 FQ2=beta.*IQ; 64 60 … … 77 73 78 74 fileID=fopen(Filename,'w'); 79 fprintf(fileID,'%s\n\r', FileString); 80 fprintf(fileID,'%s\n\r', Outputformat); 75 76 FileString=strcat('Filename:',Filename, '**R0=', num2str(R0),'**PDI=', num2str(PDI),... 77 '**contrast',num2str(contrast), '**volF=',num2str(volF)); 78 Outputformat='File format : Q, <FQ>, <FQ^2>, PQ, betaQ, SQ, SQ_Eff'; 79 fprintf(fileID,'%s\n', FileString); 80 fprintf(fileID,'%s\n', Outputformat); 81 81 for i=1:length(Q) 82 %file format : Q, <FQ>, <FQ >^2, <FQ^2>, betaQ, SQ, SQ_Eff83 fprintf(fileID,'%e\t%e\t%e\t%e\t%e\t%e\t%e\n \r',...84 Q(i),FQ(i), FQ2(i),IQ(i),beta(i),Sq(i),Sq_eff(i));82 %file format : Q, <FQ>, <FQ^2>, PQ, betaQ, SQ, SQ_Eff 83 fprintf(fileID,'%e\t%e\t%e\t%e\t%e\t%e\t%e\n',... 84 Q(i),FQ(i),IQN(i),IQ(i),beta(i),Sq(i),Sq_eff(i)); 85 85 end 86 86
Note: See TracChangeset
for help on using the changeset viewer.