Question: This is my Matlab code, in the symsum part how do I only sum the odd terns from 1 to a specific n instead of

This is my Matlab code, in the symsum part how do I only sum the odd terns from 1 to a specific n instead of all the terms

%RPHW9PartB clc clear syms n D = 3; Siga = 2; B=pi.*1/20; fun = @(x) (10-abs(x)).*cos(B.*x); Sn = (2/20)*integral(fun,-10,10); L = sqrt(D/Siga); An = (Sn/Siga)/(1+((B*n.^2).*(L.^2))); x = linspace(-10,10); flux = symsum(An,n,1,1)*cos(pi*x/20);

plot(x,flux)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!