help me pls, I want to plot
Show older comments
plot U_n = c*k^n for different ranges of k, namely, -1<=k<=1
2 Comments
Luca Ferro
on 13 Feb 2023
Edited: Luca Ferro
on 13 Feb 2023
what are the values of c and n?
And whats the step length of k?
Baraah Taha
on 13 Feb 2023
Answers (1)
c = 1;
n = 3;
k = linspace(-1, 1, 500);
U_n = c * k .^ n;
plot(k, U_n, '-', 'LineWidth', 2);
grid on
xlabel('k');
ylabel('U_n', 'Interpreter', 'none');
To learn other fundamental concepts, invest 2 hours of your time here:
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
