Matlab assignment help
diffirintiating (calling function) ,
just maybe some1 around knows better in dealing with such quastions in matlab
Here it is:
Description
Write a user defined function to calculate (numerical) the derivative of a polynomial function. The name of this user defined function must be: plot_dif_func Calling for plot_dif_func a plot of the derivative of the polynomial function must be created and numerical data must be generated as well. This numerical output consist of two arrays, one for the argument(x) and one for the calculated (dy/dx).
Don’t forget to add some help text within the function-file. Lookfor build in functions like sqrt(x),sin(x), cos(x),…
· The function definition line, must look like:
function[argument,dydx]=plot_dif_func(polynomial_func, variable)
· polynomial_func: This is the place where you type the polynomial fnction. For example if you have a input-func-tion like:
h(x)=2*x.^3+2*x+3 then you type 2*x.^3+2*x+3
instead of the text "polynomial_func"
· variable: This is the place where you type the name of the variable for the input-function (x). Because this variable is also used outside the function, it should be defined before calling the function
plot_dif_func .
After calling de function plot_dif_func you will also have 2 output vectors called argument and dydx. These two vectors can be used to plot the derivative of the arbitrary function in a second plot window.
and this is my answer , if some1 can help me understand more the question it'll be awesome cz what i know is calling function and the rest i just did it impulsivly , not sure if it make sense
i'll post it within short notice
if some1 is good at matlab i would be gladful even if i get a bit of clues and hints ,
cheers