Plotting a sequence of functions in MATLAB

9 Ansichten (letzte 30 Tage)
Suraj Panigrahy
Suraj Panigrahy am 5 Dez. 2020
Beantwortet: Walter Roberson am 5 Dez. 2020
I am interested in plotting the graphs of a sequence of functions in MATLAB.
For a specific example, I am interested in plotting the sequence of functions
for
Then how can I do that for arbitrary large values of k?
I was able to plot the graph of the function , , using fplot(@( x) x ), fplot(@(x) x^2 ) and fplot(@(x) x^3 ) but how should I do that when there are complicated functions and for higher values of n?
Additional Question
How can I plot the limit of this sequence of functions without plotting the functions ?

Antworten (1)

Walter Roberson
Walter Roberson am 5 Dez. 2020
Fn = @(x,n) x.^n;
x = linspace(0,3);
n = (1:50).';
fn = Fn(x, n);
semilogy(x, fn);

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by