Matlab help needed
How do I draw a smooth curve line that fits the points by writing in the script?
take of the asterix
copy and paste ur code here so i can mess around with it too
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)')
u can also do an exponential fit, if everyting fails
welll is this not good enuff
if u want smoother u might have to do an exponential curve fit
Sorry, I don't the codes for exponential curve fit
can u tell me what it is you are required to do exactly
like does your prof want an equation of the function of something? or just a nice looking graph
just a nice looking graph actually
u dont like this?
I actually did it with the app. However, I want to learn how to write it in a script. http://prntscr.com/4y8z3l
oh ok i see
u can click on generate code
Got it! thanks very much
sure np
there some nice interesting programs u can write to make smooth line though
you should try thinking of a method if u have time
which i doubt u do since u are in engineering too haha :P
Join our real-time social learning platform and learn together with your friends!