我有下面的图像,我想深度轴的范围如下: (10 9.5 9 8.5 8 7.5 7 6 5 3 2 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0)来显示深度1和0之间的数据在规模较大,并且我有以下代码matlab中一个轴的缩放部分
depths = [10 5 1 0.5 0; 10 5 1 0.5 0] % these are the real depths in meter
contourf(points,depths,RFU15102013_BloomAsMainPoint);
set(gca, 'XTick', points(1) : points(2), 'XTickLabel',{ 'LSB1', 'LSB2'});
ylabel('Depth(m)');
xlabel('Points');
title('Date: 15.10.2013');
这是图像:
如何做呢?
EDIT1
真实数据:
RFU15102013_BloomAsMainPoint = [ 2.71 1.23 1.30 1.20 14.37 ; 2.51 1.36 1.01 1.24 1.15];
points = [1 1 1 1 1; 2 2 2 2 2 ];
depths = [10 5 1 0.5 0; 10 5 1 0.5 0];
@divanov,你的意思是'contourf'输入?? – Parid0kht
@divanov,我刚刚添加了您要求的数据。 – Parid0kht
我已经用您提供的数据更新了我的答案。 – divanov