Mathematica
Remove["Global`*"]
w = {0.25,0.125};
h = {1,1.5};
plots = MapThread[Plot[#2 SquareWave[#1 x],
{x,-10,10},
PlotRange->{All,{-2,2}},
Frame->True,
Axes->False,
PlotStyle->{Thick,Red},
FrameLabel->{{"y(t)",None},
{"t","pulse of "<>ToString[1/(2*#1)]<>
" sec width and amplitude"<>ToString[#2]}},
ImageSize->200,
AspectRatio->1,
ExclusionsStyle->Dotted]&,{w,h}];
Grid[{plots},Frame->All]
|
|