I want to be able to store my data from a scale that I have connected to my laptop via a COM port. I have the following code, but it only shows the values in the Command Window:
s = serialport("COM3",9600);
data = readline(src);
What can I do to store it in a variable?