How to graph a step response function and Arduino signal onto the same graph in MATLAB
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
My project consists of taking a step response of an underdamped RLC circuit and comparing it to a step response of an experimental RLC circuit, using an arduino. I have the signal from my experiment and I figured out how to transfer my signal into the workspace in Matlab. But I am unable to graph both of the signals on one plot. My results are below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/588126/image.png)
This is my signal I received from my arduino setup above. Now I plot both the signals in Matlab but the signal from my arduino setup is plotting in the "simulation data inspector" while my step response is plotting on a different graph. I am not sure how to transfer either one of the data into a form that will allow me to graph both the data sets on the same graph. Does anyone have a solution to this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/588131/image.png)
0 Kommentare
Antworten (1)
Aditya Shah
am 6 Jun. 2022
Hi!
After saving the signal in the Matlab workspace, you could use the "hold on" command for combining multiple plots in same axes.
Please refer to the following documentation for more information about combining multiple plots
https://www.mathworks.com/help/matlab/creating_plots/combine-multiple-plots.html
0 Kommentare
Siehe auch
Kategorien
Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!