Question
DO NOT ANSWER THIS QUESTION WITHOUT MATLAB!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USE MATLAB TO PLOT THIS PROBLEM HERE IS MY MATLAB CODE. FIX MY MATLAB CODE WITH EXISTING LINES
DO NOT ANSWER THIS QUESTION WITHOUT MATLAB!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
USE MATLAB TO PLOT THIS PROBLEM
HERE IS MY MATLAB CODE. FIX MY MATLAB CODE WITH EXISTING LINES IN PLACE. DON'T USE TRAPZ OR ANY COMMAND THAT IM NOT FAMILIAR WITH.
YOUR ANSWER MUST HAVE A MATLAB CODE AND ITS RESULT THAT MATCHES THE PROVIDED SOLUTION
x = 0:1:4;
N = 60;
for n = 1:N
Cn = (1/(2*pi*(2*n-1)))*(8*sin((2*n - 1)*pi/2) - 16*sin(n*pi/2 - pi/4));
Vn = cos(0.25*x*((2*pi*n - pi)/2));
F = Cn*Vn;
end
plot(x,F);
figure(2)
xlabel('x')
ylabel('y')
grid on
set(gca,'XAxisLocation','origin','YAxisLocation','origin')
ITS SOLUTION
In each of Problems 1-6, find the expansion of f(x) in the eigenfunctions of the given Sturm-Liouville problem. Compare graphs of the function and the N th partial sums of the series for the given N. Also use the convergence theorem to determine what this eigenfunction expansion converges to on the relevant open interval. y+y=0;y(0)=y(4)=0f(x)={11for0x2,for2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started