【发布时间】:2017-08-01 23:25:41
【问题描述】:
我在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
【问题讨论】:
标签: matlab plot matlab-figure