how can I activate a data cursor on a matlab visualisation app
古いコメントを表示
I did write matlab visualisation app what works perfectly.
Now I would like to use a Datacursor as shown in the standard Channel fields display.
what code do I have to add to my code of my visualisation app?
回答 (2 件)
Sahithi Kanumarlapudi
2019 年 9 月 23 日
0 投票
‘datacursormode’ can be used to enable or disable data cursor mode.
For further information refer to the following link
Melek Demir
2020 年 10 月 8 日
0 投票
%% Visualize Data %%
yyaxis left;
plot(time1, data1,'o-', time, dewPoint,'+-','LineWidth', 1.4)
datacursormode on
% Click mouse on surface to display data cursor
yl = ylim;
ylim([yl(1)-0.5 yl(2)+0.5]);
ylabel('Temperatures [°C]');
yyaxis right
plot(time2, data2,'o-','Color','g','LineWidth', 1.4);
yl = ylim;
ylim([yl(1)-1 yl(2)+1]);
ylabel('rel. Humidity [%]');
xlabel('Date');
title('rel.Humidity + Temp. / DewPoint');
legend({'Temp.Tu','DewPoint','Humidity'},'Location', 'best');
grid on
カテゴリ
ヘルプ センター および File Exchange で Time Series Events についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!