I am having a problem plotting the following function in Matlab:
x = 10*((sin(pi*f*0.1))/(pi*f*0.1))^2;
I am using this code:
f = -50:0.1:50;
x = 10*((sin(pi*f*0.1))/(pi*f*0.1))^2;
plot (f,x);
I can plot the function using a graph tool I found on google but MATLAB is just giving me a blank plot. The axis don't correspond to what I should be getting either.
Does anyone know why this graph doesn't appear as it should?