MATLAB: I have two simulink files and i have to run and compare the results of both the files at the same time….is it possible to plot both the output in a single plot and how

plotsimulink

two simulation files are of grid connected pv system and i am using two different mppt techniques and want to compare them on the same plot…please help

Best Answer

Save the signals of both Simulink files which you want to compare to the workspace (this can be done by going to data history tab of the scopes connected to the signals. Tick save data to workspace and name the variables)
In the command window create a variable with both signals(ex:a={scopedata1,scopedata2};) Use
Simplot(a)