help me pls, I want to plot
古いコメントを表示
plot U_n = c*k^n for different ranges of k, namely, -1<=k<=1
2 件のコメント
Luca Ferro
2023 年 2 月 13 日
編集済み: Luca Ferro
2023 年 2 月 13 日
what are the values of c and n?
And whats the step length of k?
Baraah Taha
2023 年 2 月 13 日
回答 (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:
カテゴリ
ヘルプ センター および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

