main.m197 chars14 lines
Explanation:
subplot(1,2,1) creates a subplot with 1 row, 2 columns and sets the current axis to the first panel of the subplothistogram(data1) adds a histogram to the first panel using data1 as the inputtitle('Data 1') adds a title to the first panelsubplot(1,2,2) creates a subplot with 1 row, 2 columns and sets the current axis to the second panel of the subplothistogram(data2) adds a histogram to the second panel using data2 as the inputtitle('Data 2') adds a title to the second panelgistlibby LogSnag