live data plotting in app designer.
7 ビュー (過去 30 日間)
古いコメントを表示
I am creating and app which can plot live data from Ultrasonic sensor to UIaxis, I am able to plot the data point with any other shapes like square, circle or star, but not the continues line which I want. can someone help me with this? I am attaching my code.
0 件のコメント
採用された回答
Voss
2023 年 9 月 28 日
What you have now is
plot(app.UIAxes,app.t,app.y,'bs');
which plots blue squares at the points given by (app.t,app.y).
If you change it to
plot(app.UIAxes,app.t,app.y,'-bs');
then that would plot blue squares at the points (app.t,app.y) with a solid blue line connecting them.
Or perhaps you want:
plot(app.UIAxes,app.t,app.y,'-b');
% or simply
plot(app.UIAxes,app.t,app.y,'b');
which would plot a solid blue line with no squares (or markers of any kind).
See:
for other line style/marker/color options.
4 件のコメント
Dyuman Joshi
2023 年 10 月 11 日
Accepting the answer indicates that your problem has been solved (which can be helpful to other people in future) and it awards the volunteer with reputation points for helping you.
You can accept only 1 answer for a question, but you can vote for as many answers as you want. Voting an answer also provides reputation points.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!