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.
Ältere Kommentare anzeigen
f=[2, -5, -12, 30, 10];
column=size(f);
degree=column(2)-1;
exponents=[degree:-1:0];
deriv1=f.*exponents
deriv2=deriv1.*(exponents-1)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Assumptions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!