I have two arrays M and V, both are the same dimesions.
I am trying to find and plot this vs. M, this is the code I am working with – but it doesn't work – what should I do?
second_der = diff(V_preamp,2)./diff(M,2);
The probem with the above code is it creates a second derivative code that is shorter than the independent variable I am plotting the graph with (independent variable – M)
How can I fix this isse.
Best Answer