Skip to main content

Posts

A Night without Electricity

It was raining heavily as I hurriedly ran towards my flat in Southern Park. It was already eleven when I was returning home after work. I soon realised by the darkness of the lane that there was a power cut in the locality which made it very difficult to find my way.  Adapting my eyes to the darkness of the lane, I strode along the path I knew so well. I quickly opened the door and entered the apartment. It was a three storey building, the ground floor was Dr. Kunal's Chamber and the first floor belonged to Mr. Bose while I lived on the second floor.  As I entered I could see a faint light coming from a candle burning in the doctor's cabin and feeling for the stair case in the dark , I slowly started to climb the stairs. There was an empty bird cage at the door of Mr. Bose who was a bird lover and would often go to the nearest lake with his DSLR camera early in the morning hoping to take a snap of  the river kingfisher or the common emerald dove. So carefully passing by t...

How to plot a Continuous Time Sequence and Discrete Time Sequence in Matlab

1. For Continuous Time Sequence:        Use the function:  plot(X-axis, Y-axis)          For example to plot a parabolic function p(t)=  At^2 for t>=0                                                                                    0        for t<0           Code:           %UNIT PARABOLIC FUNCTION t=linspace(-20,20,20);      %range of X-asis A=1;                  %amplitude of the function for A=1 it is called unit parabolic function p=[t>=0].*(A.*t.^2)/2;      %parabola equation as defined above subplot(1,2,1);                ...