叠加的数据图和MATLAB中图形的对应图

时间:2016-09-07 22:40:20

标签: matlab plot matlab-figure

我在data1中保存了11 binary datasets所有尺寸297x258,并且我希望生成一个图像,这些数据重叠,每个图像都分配了不同的颜色,背景被删除(白色)。此图像显示了所需输出的示例:

Overlap

我使用以下方法生成这些数据集的数据:

figure, imshow(data1{1}),axis image, colormap(jet)

此外,对于每x值增量,data1{1}data1{11}之间的平均大小增加(y轴增加)的任何帮助也是值得赞赏的。每组数据data1{1}data1{2},... data1{11}分别代表时间0,1,... 11,我想绘制平均增长的图表。 y轴相对于x轴(1:297)。非常感激您的帮忙。感谢。

到目前为止,我的想法是:

for x=1:x_dim % where xdim is 297 (along the X-axis)
    for y=1:ydim % where ydim is 258 (along the y-axis)
        % execute code to determine increase in y-direction between
        % binary datasets data1{1}, data1{2},...data1{11}. 
        % Then compute average for growth in the y-direction between each time
    end
    % Plot figure of average increase in y-axis against x-axis.
end

1 个答案:

答案 0 :(得分:1)

所以这里是你想要的数字的代码:

^(.*)([\s]+)([-+]?[0-9]*\.?[0-9]+)([K|M|G|T|P]{1})([\s]+)([-+]?[0-9]*\.?[0-9]+)([K|M|G|T|P]{1})(.*)$

这给出了这个:

stack_figures

选项1没有左边,选项2在右边。