Hi Nick Olibrice,
From my understanding of your question,you are facing an error using plot.I hope the following documentation which has a similar use case may give you an insight of how to use the function plot,
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!