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
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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.