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.
Mostrar comentarios más antiguos
f=[2, -5, -12, 30, 10];
column=size(f);
degree=column(2)-1;
exponents=[degree:-1:0];
deriv1=f.*exponents
deriv2=deriv1.*(exponents-1)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!