Scatter not showing full precision of data.
Mostra commenti meno recenti
I am trying to plot one measurement versus another withing the scatter function as such below but the result is that data is "sampled" at a much lower precision that the two column vectors I am supply it with. I have made sure to specify format long in my script. Any help would be beyond appreciated. I have attached the data below. It has ~16 digits of precision but I am not getting the double precision it says it is (as seen in the graph below).

figure;
hold on
scatter(ztemp,zrate,".")
ylabel('Angular Rate \omega_z [deg/s]');
xlabel('Rate Sensor Temperature Measurement [deg C]');
title('Angular Rate Measurements Vs. Temperature Sampled and Fitted');
ylim([-0.6 0.6])
xlim([-15 60])
hold off
saveas(gcf,'Angular Rate Measurements Vs. Temperature Sampled and Fitted.png')
2 Commenti
Walter Roberson
il 18 Ott 2023
if you calculate
duz = diff(unique(zdiff)) ;
min(duz)
what shows up?
Dyuman Joshi
il 18 Ott 2023
format only changes the way how the numerical values are displayed. It has no effect how numbers are stored and used for operations.
I don't understand what exactly your question is.
Risposta accettata
Più risposte (1)
websave("data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1514124/data.mat")
load("data.mat")
figure;
hold on
scatter(ztemp,zrate,".")
ylabel('Angular Rate \omega_z [deg/s]');
xlabel('Rate Sensor Temperature Measurement [deg C]');
title('Angular Rate Measurements Vs. Temperature Sampled and Fitted');
ylim([-0.6 0.6])
xlim([-15 60])
% whos
figure
% Your data (zrate) is in discrete groups
histogram(zrate)
figure
plot(sort(zrate))
Categorie
Scopri di più su Lengths and Angles in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




