Matlab's contour and colormap ignores input values
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mldmnn
el 6 de Ag. de 2018
Comentada: Adam Danz
el 6 de Ag. de 2018
I'm plotting a contour using the contourf function in Matlab and using sound pressure levels and the associated coordinates as an input. The maximum SPL is over 78 dB. The contourf function somehow is only taking values until 75 dB into account but I need a finer resolution what is covering values until the maximum one. Now all values over 75 dB are in the same color.
% Plotting
figure();
contourf(xObsGnewGrid,yObsGnewGrid,obsSplMaxInterp,'LineColor','none');
axis equal;
clrb = colorbar('eastoutside','Ticks',[0:2:100]);
zlab = get(clrb,'ylabel');
set(zlab,'String','SPL [dBA]');
ylabel('Lateral Position [m]');
xlabel('Longitudinal Position [m]');
xlabel('Longitudinal Position [m]');
0 comentarios
Respuesta aceptada
Ver también
Categorías
Más información sobre Colormaps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!