Changeset 1260 for trunk/examples/app-fermi/octave/fermi.m
- Timestamp:
- Dec 20, 2008, 2:51:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/app-fermi/octave/fermi.m
r665 r1260 41 41 rpLibPutString(lib,"output.curve(f12).yaxis.units","eV",0); 42 42 43 for j=1:200 44 rpUtilsProgress((j/200*100),'Iterating'); 45 putStr = sprintf('%12g %12g\n', f(j), E(j)); 46 % put the data into the xml file 47 rpLibPutString(lib,"output.curve(f12).component.xy",putStr,1); 48 end 43 % this is a slow and inefficient method of putting 44 % large amounts of data back in to the rappture library object 45 %for j=1:200 46 % rpUtilsProgress((j/200*100),'Iterating'); 47 % putStr = sprintf('%12g %12g\n', f(j), E(j)); 48 % % put the data into the xml file 49 % rpLibPutString(lib,"output.curve(f12).component.xy",putStr,1); 50 %end 51 52 % a better way is to take advantage of octave's vector operations. 53 outData = [f;E]; 54 putStr = sprintf('%12g %12g\n', outData); 55 rpLibPutString(lib,'output.curve(f12).component.xy',putStr,0); 49 56 50 57 % signal the end of processing
Note: See TracChangeset
for help on using the changeset viewer.