设置矩阵投影的轴限制

时间:2018-07-17 08:39:53

标签: matlab plot axis

我正在使用imagesc投影矩阵的值。我想在[0:22000]秒之间设置X轴限制。我为此编写了示例代码。它没有按预期工作。任何帮助将不胜感激。

cars_in_field = cell2mat(cars_in_field);
cars_in_garage = cell2mat(cars_in_garage);
cars_in_workshop = cell2mat(cars_in_workshop);

all_area_for_visual= 
cars_in_field+2*cars_in_garage+3*cars_in_workshop
figure()
imagesc(transpose(all_area_for_visual));
colormap("jet")
xlim([0 ,22000])

enter image description here; enter image description here

1 个答案:

答案 0 :(得分:1)

尝试一下

b