help me pls, I want to plot

1 vue (au cours des 30 derniers jours)
Baraah Taha
Baraah Taha le 13 Fév 2023
Commenté : Baraah Taha le 13 Fév 2023
plot U_n = c*k^n for different ranges of k, namely, -1<=k<=1
  2 commentaires
Luca Ferro
Luca Ferro le 13 Fév 2023
Modifié(e) : Luca Ferro le 13 Fév 2023
what are the values of c and n?
And whats the step length of k?
Baraah Taha
Baraah Taha le 13 Fév 2023
c = 1 or any constant belong in integer
n from 0 to 20
-1 <=k <=1

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 13 Fév 2023
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:

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by