How do I create a simple straight line graph in MATLAB?

  • Context: MATLAB 
  • Thread starter Thread starter boreilly
  • Start date Start date
  • Tags Tags
    Graph Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
boreilly
Messages
8
Reaction score
0
i have done a simple experient and now i want to draw a graph in MATLAB. how do i do that? its a straight line graph so i'd like to be able to put on a best fit line and get the slope of that. As basic as this is I'm struggling to find help how to do it on the net.seems i can find a billion pages on graphing functions etc and big fancy 3d graphs. I have a list of voltage measurements and a corresponding speed for each one
 
Physics news on Phys.org
Check if this link helps
http://www.swarthmore.edu/NatSci/echeeve1/Ref/Matlab/CurveFit/LinearCurveFit.html
 
Last edited by a moderator:
perfect. exactly. thanks.