Ask your own question, for FREE!
Computer Science 13 Online
OpenStudy (richyw):

Looking for some help with MatLab. Basic question. I am trying to create a function of time, take its derivative and then plot all three on a graph. the function I want to plot is \[x(t)=e^{-(4-\sqrt{3})t}+e^{-(4+\sqrt{3})t}. This is what I have done. t = [0:0.1:4] x = exp(-(4-sqrt(3))*t)+exp(-(4+sqrt(3))*t) v = diff(x)./0.1 plot3(x,v,t); I get the error "Error using plot3 Vectors must be the same lengths." and upon investigation, my function has an extra column than the other two. how can I fix this?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!