I'm a noob and the assignment is to create a derivative script without using the polyder function. I have this so far? Does anyone have a more efficient method because I want to learn to code efficiently from the start.
이전 댓글 표시
f=[2, -5, -12, 30, 10];
column=size(f);
degree=column(2)-1;
exponents=[degree:-1:0];
deriv1=f.*exponents
deriv2=deriv1.*(exponents-1)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!