Serial data split for plotting
3 views (last 30 days)
Show older comments
Hello, i am faceing some isues trying to plot two numeric values.
I have the following code
while (s.Status == 'open')
C=fscanf(s);
display(C);
End
Now on my controler i send the following value1$value2\r\n I want to extract separate the value1 and value2 after that i will plot on a graph. the data is floating type.
in my code C =1.4$0.5 , how can i split these two and use separate?
For example based on my incoming C string to have A=1.4 and B=0.5
Thanks
0 Comments
Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!