Using a fucntion in loop
조회 수: 1 (최근 30일)
이전 댓글 표시
I defined this;
P = [1 -2 4]
I want to find nth derivative of this poly and I want to do it with while loop for example I try this;
a = 0;
n = 3;
while(a < n)
polyder(P)
a=a+1;
end
The result is
ans =
2 -2
ans =
2 -2
ans =
2 -2
Why does the program take derivative of the poly at first but it does not for the rest of it?
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!