Intro to Programming Notes

Intro to Programming Notes - Department of Engineering...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Department of Engineering Education, EngE 1114 Page 1 of 3 Virginia Polytechnic Institute and State University Copyright 2010 Summary of MATLAB Commands To get help (typed in the command window at the prompt >>) help Displays a list of areas of related commands help command Displays details of the command NOTE: if the "command" specified does not exist MatLab will respond command.m not found help filename Displays the comments at the top of the program (m-file) where filename is the name of a script or function m-file. These comments are added by the programmer to provide information about the program. lookfor "term" Displays a list of commands that involve the "term" (where "term" is what you are searching for) Clearing and Resetting (typed in the command window at the prompt >> or used in an m-file) clear Clears all variables, removes all variables from memory and the workspace clear variable_name Clears the specific variable variable_name , removes the variable from the memory so that it is an undefined variable. clear all Clears all variables, global variables, and functions clc Erases the MatLab command window, DOES NOT CLEAR the variables. General Editing (in the command window) or Retrieve a previous command in the current interactive session. or Used to move around on the current command line. backspace
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Intro to Programming Notes - Department of Engineering...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online