Hi Community,
I have a question about printf function in Matlab. Iam using printf function like this below:
hasil_convs_saving_mult = sprintf('Fixed %s Combined Magnetic Data %s %s (%s).txt', savektot_data, mr_mm_tot, convtot_begins_finals, stasiunc_comb);
saving_multfileconvs = fullfile(pathraw, hasil_convs_saving_mult);
foutsaving_multfileconvs = fopen(saving_multfileconvs,'w');
fprintf(foutsaving_multfileconvs,'%s %s %s %s %s %s %s %s %s %s %s %s\n', 'DATE', 'TIME', 'H(Fix)', 'F(Calc_Fix)', 'F(Obs_Fix)', 'D(Fix)', 'X(Fix)', 'Y(Fix)', 'Z(Fix)', tipec_comb, stasiunc_comb, time_conversion);
fprintf(foutsaving_multfileconvs,'%s %s %.2f %.2f %.2f %.2f %.2f %.2f %.2f\n', [waktudate_conv_combi, waktutime_conv_combi, Total_ekstrak_komph, Total_ekstrak_kompfcalc, Total_ekstrak_kompfobs, Total_ekstrak_kompd, Total_ekstrak_kompx, Total_ekstrak_kompy, Total_ekstrak_kompz]') ;
fclose(foutsaving_multfileconvs);
However, the output is so weird. The output of the above code is actually in .txt, but when i opened it in notepad..... It sadly become like this:
Why the ouput become like this, everyone... I realized that the data input was include NaN data in double, but it never like this before.... Would anyone lend me a hand to solve this problem? Is it because of my PC setting or an Error in my code or what? Thank you so much.... /.\ /.\ /.\