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!

