MATLAB: Plot and calculate integral

functionhomeworkintegralplotquad

I need to create a script that calculates and plots an integral of any function. I am not allowed to use quad, I'm supposed to replace quad I guess. I am completely lost, does anyone know what to do?
Cheers

Best Answer