Some Matlab scripting and coordinate axes glitches on my codes
I had some problems using my previous Matlab script on generating the converted latitude, longitude and height from the ECEF -X,Y,Z coordinates. for k = 1:5 matFilename = sprintf('%d.csv', k); M = ecef2lla(textread(matFilename)); dlmwrite('sample.xyz',M, '-append'); end What happens right here is that it writes formatted values of the latitude, longitude and height formatted in three columsn but in 5 significant digits only hence creating duplicated coordinates which scraped up most of my values in the sample.xyz. It took me the whole long weekend to figure out how to improve the results, I know it's on the formatting only and not on the predefined classes per se. As I've always been familiar with the %3.2f tag for specifying the decimal places in a float, I have been trying all the way to fit in my argument but to no avail. I'm almost giving up on using the "dlmwrite" function and tried using the "fprintf...