MATLAB: Get the reflection of function functionreflection how can i get the reflection f(-t) of f(t) ? Best Answer t = linspace(0,2*pi) ;f = @(t) sin(t) ;figurehold on% f(t)y1 = plot(t,f(t),'r') ;%f(-t) y2 = plot(t,f(-t),'b') ;legend('f(t)','f(-t)') Related SolutionsMATLAB: Reflection coeff. value Maybe try the following:n=[1 2 3 4 5 6]; ki=2.*pi.*nk=1.2kz=sqrt((ki.^2-k.^2))for i= 1:length(kz)-1RTE(i)=(kz(i)-kz(i+1))/(kz(i)+kz(i+1));endRTE MATLAB: Plotting Fresnel reflection plotting If anyone needs to know the answer to this. It is because he is not doing element wise divisionR=((n_S-1).^2)/((n_S+1).^2);should beR=((n_S-1).^2)./((n_S+1).^2);Note the './' instead of '/' for division Related QuestionPlotting quadratic f(t) = t^3
Best Answer