我在data1
中保存了11 binary datasets所有尺寸297x258,并且我希望生成一个图像,这些数据重叠,每个图像都分配了不同的颜色,背景被删除(白色)。此图像显示了所需输出的示例:
我使用以下方法生成这些数据集的数据:
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