clc; f=1/4; //frequency in Hz l=30; //wavwlength in metre v=f*l; //calculating velocity disp(v,"Velocity in m/sec = "); //diplaying result