Enable contrast version

# Tutor profile: Krishna S.

Inactive
Krishna S.
Teacher at an NGO, Student at BITS Pilani
Tutor Satisfaction Guarantee

## Questions

### Subject:MATLAB

TutorMe
Question:

Convolute two identical rectangular pulses? 1- Write a function rect(t) 2- Write a program to find two convolution of two identical rectangular pulses which are defined in the interval [-0.5 ,0.5 ] 3- plot both input and output

Inactive
Krishna S.

The following is code for the above question, comments are included for better understanding of question. function [ ] = task1aks( ) %function for rectangle function [ n ] = rectangle( t ) n=zeros(1,size(t,2)); for i=1:length(t) n(i)=0; if (t(i)>=-0.5) && (t(i)<=0.5) n(i)=1; end end end %initial values fs=100; t=-5:1/fs:5; x=rectangle(t); %convoluting things y=conv(x,x,'same')/fs; figure subplot(2,1,1); plot(t,x); title('Input_value'); subplot(2,1,2); plot(t,y); title('Output_value'); end

### Subject:Java Programming

TutorMe
Question:

how to find out the middle element in a linked list in a single pass(in one loop through the list)?

Inactive
Krishna S.

### Subject:Electrical Engineering

TutorMe
Question:

Why is only sine wave used to represent electrical waves in equations, not square or cosineor other forms of waves?

Inactive
Krishna S.

It is not by choice that we use sine wave as the standard form. It is also not because sine wave has a maximum minimum and as such a large rms value. Rms value for cosine and ramp waves is also same, but we don't use them, because in the power generation, emf induced produces current in sine wave form only.It is the simplest way we can produce current.

## Contact tutor

Send a message explaining your
needs and Krishna will reply soon.
Contact Krishna