plot U_n = c*k^n for different ranges of k, namely, -1<=k<=1

댓글 수: 2

Luca Ferro
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
Baraah Taha 2023년 2월 13일
c = 1 or any constant belong in integer
n from 0 to 20
-1 <=k <=1

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2023년 2월 13일

0 개 추천

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에 대해 자세히 알아보기

태그

질문:

2023년 2월 13일

댓글:

2023년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by