Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of MATLAB
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Books

Bookmark and Share
Lecture Comments (3)

0 answers

Post by Leif Djurhuus on May 2, 2014

help plot
plot - 2-D line plot

   This MATLAB function creates a 2-D line plot of the data in Y versus the
   corresponding values in X.If X and Y are both vectors, then they must have equal
   length and MATLAB plots Y versus X.If X and Y are both matrices, then they must
   have equal size and MATLAB plots columns of Y versus columns of X.If one of X or
   Y is a vector and the other is a matrix, then the matrix must have dimensions
   such that one of its dimensions equals the vector length.

   plot(X,Y)
   plot(X,Y,LineSpec)
   plot(X1,Y1,...,Xn,Yn)
   plot(X1,Y1,LineSpec1,...,Xn,Yn,LineSpecn)
   plot(Y)
   plot(Y,LineSpec)
   plot(___,Name,Value)
   plot(axes_handle,___)
   h = plot(___)

   Reference page for plot

   See also gca, hold, legend, LineSpec, title, xlabel, xlim, ylabel, ylim

   Other functions named plot
       simulink/plot, curvefit/plot, finance/plot, mpc/plot, wavelet/plot,
       simscape/simscape.logging.plot

1 answer

Last reply by: Professor Arash Vafanejad
Fri May 2, 2014 11:47 AM

Post by Leif Djurhuus on May 2, 2014

Hi, i have the R2014a version, and i dont get anything near as mush info when typing help - like 1/10 of the thext you get.

Am i doing anything wrong ?

Seems strange to massively reduce help in a newer version

Introduction to Programs

  • Sample program: sometimes there are problems that MATLAB cannot solve in one line, a collection of statements to solve such a problem is called a program.
  • How to start: from MATLAB desktop select: File → New → M-file, or click the new file button on the desktop toolbar.
  • How a program works: MATLAB is called an interpreter as opposed to compiler. This means that each statement is translated into a language that computer understands and then immediately carried out.

Introduction to Programs

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Help Function 0:09
    • Command History
    • Navigating
  • Current Folder 1:20
  • Resize and Undocking Windows 1:31
  • Sample Program 1:49
  • Example: Interest Calculator 3:28
  • Interpreter Versus Compiler 5:10