I dont know why but MATLAB is adding a rise time while plotting the square wave.
How to stop it from doing so?
I want perfect square wave, how can I achieve the same?
The code and png of figure is attached below.
Thanks in advance
Aksh
t = linspace(0,10e-9);x = square(t*2*pi/(10e-9));Y_max=x*370.0;Y_min=x*323.4;hold onplot(t,Y_max,'LineWidth',3,'color',[203/255;1/255;98/255]);plot(t,Y_min,'LineWidth',3,'color',[203/255;1/255;98/255]);
hold off
Best Answer