How can I add a line to an imagec figure?

5 ビュー (過去 30 日間)
Szabó-Takács Beáta
Szabó-Takács Beáta 2019 年 6 月 12 日
Hi,
I use Matlab R2015b. I created an image in the following way:
imagesc(t,altitude,BS);
datetick('x', 'HH:MM');
colorbar;
where
t
is datenum. How can I add a vertical line to the figure when x is 17:30 i.e to the t(3952) data? I attached the figure.
Thank you for your help in advance!
  1 件のコメント
Jan
Jan 2019 年 6 月 12 日
It depends. The "figure" is the complete window. Do you add a line over the complete window? Or do you want to display the line in the axes? In this axes you display the contents of the matrix BS. Do you want to insert the line in this data matrix, or is it enough to draw a line on top of the displayed image?

サインインしてコメントする。

採用された回答

Jan
Jan 2019 年 6 月 12 日
Maybe (see my comment above):
line(t([3952, 3952]), altitude([1, end]))
  1 件のコメント
Szabó-Takács Beáta
Szabó-Takács Beáta 2019 年 6 月 13 日
Thank you very much for your help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

製品


リリース

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by