Skip to content

Instantly share code, notes, and snippets.

@krish-iyer
Last active August 20, 2019 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krish-iyer/fb3967dfb503178857ab30cf387df03c to your computer and use it in GitHub Desktop.
Save krish-iyer/fb3967dfb503178857ab30cf387df03c to your computer and use it in GitHub Desktop.
function y = SerialPlot(s)
t=0;
m = 0 ;
interv = 1000 ;
while ( t <interv )
st = fscanf(s, '%d');
plot(t, st,'*')
hold on
t = t + 1;
pause(0.3)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment