Is there a way to plot (4D) such that x, y, and z are in the linear scale but the fourth dimension is logarithmic?
Afficher commentaires plus anciens
I am having problems plotting a 243,082 row, 4 column data set. I want to display some amplitude values at specific times. I have x coordinates on the x axis, y coordinates on the y axis, time on the z axis, and want amplitude displayed by color at each time. I have been trying to use the scatter3 command to display the data, and everything displays correctly except for the amplitude (all the amplitudes are blue). I think part of the problem may be the fact that the amplitudes range from 10^-27 to 10^-6 and so MATLAB is just rounding each value to zero. Is there a way to make the amplitude display in the logarithmic scale? And will that fix the problem?
Here is my code:
file=uigetfile;
x_coordinate=xlsread(file,'a2:a243082');
y_coordinate=xlsread(file,'b2:b243082');
time=xlsread(file,'c2:c243082');
amplitude=xlsread(file,'d2:d243082');
figure
scatter3(x_coordinate,y_coordinate,time,amplitude)
caxis([10^(-27) 10^(-6)])
colorbar
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Surface and Mesh Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!