MATLAB help
>>I have two arrays A and B.
>>Now I want the derivative of B with respect to A at all points of A.
>>So i move on to express B=f(A).
>>i use polyfit function and get the function f.
>>then i do f1=diff(f)
Now i am facing two problems:
1.when i express b=f(a) like y=x^4+(.02*x^3) and so on,it says " Error using ==> mpower
Matrix must be square."
2.it also says "Attempted to access f1(2); index out of bounds because numel(f1)=1."
what mistakes am i doing?😔😒
Thanks in advance.