Why serial plotter is looking like this? How to resolve?
Mostrar comentarios más antiguos

4 comentarios
Walter Roberson
el 9 de En. de 2023
Please post a link to matlab function you are using. Mathworks does not supply any serial plotter. There are a few serial plotters in the file exchange, but they do not look like that.
Technical
el 9 de En. de 2023
Technical
el 9 de En. de 2023
Walter Roberson
el 9 de En. de 2023
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.
Respuestas (1)
Walter Roberson
el 10 de En. de 2023
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);
Categorías
Más información sobre MATLAB Support Package for Arduino Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!