help me pls, I want to plot
1 次查看(过去 30 天)
显示 更早的评论
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?
回答(1 个)
Image Analyst
2023-2-13
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:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!