how can I plot(t,Tg) or interpret Tg in t=(0:0.001:0.1n),n is a given positive integer ?

I had tried to modify the code in https://www.mathworks.com/matlabcentral/answers/163582-how-to-plot-a-piecewise-periodic-function-please-help

but it didn't work. plz help.

## Best Answer