Save serial port objects and variables to file
save filename
save filename obj1 obj2...
save filename
saves all MATLAB® variables
to the file filename
. If an extension is not specified
for filename
, then the .mat
extension
is used.
save filename obj1 obj2...
saves the serial
port objects obj1
obj2...
to
the file filename
.
This example illustrates how to use the command and functional
form of save
on a Windows® platform.
s = serial('COM1'); set(s,'BaudRate',2400,'StopBits',1) save MySerial1 s set(s,'BytesAvailableFcn',@mycallback) save('MySerial2','s')