Why serial plotter is looking like this? How to resolve?
5 ビュー (過去 30 日間)
古いコメントを表示
4 件のコメント
Walter Roberson
2023 年 1 月 9 日
That is not matlab code and does not do any plotting. You asked about a specific serial data plotting routine, but to answer that question we need to know which MATLAB-based plotting routine you are using.
回答 (1 件)
Walter Roberson
2023 年 1 月 10 日
After you have created a serialport object and configured it appropriate,
s = readline(PORT);
values = sscanf(S, 'Rawvalue from Analog input =%f Scaled Value =%f');
rawvalue = values(1);
scaledvalue = values(2);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!