Ask your own question, for FREE!
Mathematics 18 Online
OpenStudy (junyang96):

Matlab help needed

OpenStudy (junyang96):

How do I draw a smooth curve line that fits the points by writing in the script?

OpenStudy (dan815):

take of the asterix

OpenStudy (dan815):

copy and paste ur code here so i can mess around with it too

OpenStudy (junyang96):

clc a=[98.5 61.3 38.4 16.0 7.1 3.0 1.4 0.7 0.3 0.2 0.1 0.1 0.1];%current v=[0.03 3.78 6.22 8.47 9.35 9.70 9.87 9.94 9.96 9.97 9.98 9.99 10.00 10.00];%voltage/ dependant variable t2=10:10:120; t1=[0 5]; t=[t1 t2];%time/ dependant variable plot(t,v) %title('Graph of V vs T') %xlabel('V(V)') %ylabel('T(t)')

OpenStudy (dan815):

u can also do an exponential fit, if everyting fails

OpenStudy (dan815):

welll is this not good enuff

OpenStudy (dan815):

http://prntscr.com/4y8xdd

OpenStudy (dan815):

if u want smoother u might have to do an exponential curve fit

OpenStudy (junyang96):

Sorry, I don't the codes for exponential curve fit

OpenStudy (dan815):

can u tell me what it is you are required to do exactly

OpenStudy (dan815):

like does your prof want an equation of the function of something? or just a nice looking graph

OpenStudy (junyang96):

just a nice looking graph actually

OpenStudy (dan815):

http://prntscr.com/4y8ygx

OpenStudy (dan815):

u dont like this?

OpenStudy (junyang96):

I actually did it with the app. However, I want to learn how to write it in a script. http://prntscr.com/4y8z3l

OpenStudy (dan815):

http://prntscr.com/4y8zei

OpenStudy (dan815):

oh ok i see

OpenStudy (dan815):

u can click on generate code

OpenStudy (junyang96):

Got it! thanks very much

OpenStudy (dan815):

sure np

OpenStudy (dan815):

there some nice interesting programs u can write to make smooth line though

OpenStudy (dan815):

you should try thinking of a method if u have time

OpenStudy (dan815):

which i doubt u do since u are in engineering too haha :P

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!