How do I plot this series?

3 visualizzazioni (ultimi 30 giorni)
Niloufar
Niloufar il 27 Ott 2022
Modificato: KALYAN ACHARJYA il 27 Ott 2022
close all;clear;clc; t = linspace(-5,5,1000); %ylim([-0.01 0.01]); N = 1000; syms n t; an = (100*n*pi*(-1).^(n+1).*(1000-121*n.*n*pi*pi))/((1000-121*n.*n*pi*pi)^2 + (1320*n*pi)^2)*(50*n*pi); bn = (100*n*pi*(-1)^(n+1)*(1320*n*pi))/((1000-121*n.*n*pi*pi)^2 + (1320*n*pi)^2)*(50*n*pi); f = symsum(an.*cos(100*n*pi*t) + bn.*sin(100*n*pi*t),n,1,Inf); fplot(f); //I want to plot this series but it doesn't work what is the problem?

Risposta accettata

KALYAN ACHARJYA
KALYAN ACHARJYA il 27 Ott 2022
Modificato: KALYAN ACHARJYA il 27 Ott 2022
Change the upper bound value to any finite number
f = symsum(an.*cos(100*n*pi*t) + bn.*sin(100*n*pi*t),n,1,100);
%.........................................................^ any
%Try fplot same as code

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by