![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237415/image.png)
Plotting infinite series with set of parameters
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to plot the following functions,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237395/image.png)
Here,
and
given by
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237396/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237397/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237398/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237399/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237400/image.png)
I have approximated a set of values for
. I have tried the following code, but failed to generate expected plot. Is that due to approximation, or there is any other error in my code?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237401/image.png)
clc
clear all
syms Y
k = 0.1;
j=[-8.0671,-5.30732,-2.62768,0,8.0671,5.30732,2.62768];
for i=1:length(j)
f1 = (sin(j(i))+ k*j(i)*cos(j(i)))*cos(j(i)*Y) - (cos(j(i)) - k*j(i)*sin(j(i)))*sin(j(i)*Y);
f2=((((j(i).^4)/16)+1)*((k*(k + 1)*sin(j(i))) - (1 + 2*k - k^.2*j(i).^2)*((cos(j(i)))/(2*j(i)))));
U=0.25*sum(((f1/f2)*exp(-0.25*j(i).^2)),i,1:8);
fplot(U);xlim([0 1]);%hold on;
end
3 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!