Shared Flashcard Set

Details

BE100-Exam 2
Matlab commands
36
Computer Science
Undergraduate 1
01/19/2010

Additional Computer Science Flashcards

 


 

Cards

Term
function
Definition
defines new commands/functions in matlab by accepting inputs, taking them through processing, and producing outputs
Term
disp
Definition
shows an array without giving it a name
Term
local variables
Definition
specific to the function, do not repeat in other functions
Term
function name
Definition
should be the same as the file's name without the .m extension
Term
declaration line
Definition
Defines the function name, and the number and order of input and output arguments
Term
string
Definition
the data is stored in character and letter format as numbers instead of as just a number
Term
strcat
Definition
links together the following characters into one chain
Term
M-Lint
Definition
checks your code for problems and recommends modifications
Term
breakpoints
Definition
stopping points in a simulation; conditional or unconditional
Term
plot(
Definition
plots graphs of varying types
Term
subplot(m,n,p)
Definition
creates one figure with more than one plot; m=number of rows of plots; n=number of columns of plots; p= which plot in the matrix of plots this plot is
Term
axis _
Definition
changes the axis to differ from the default settings
Term
xlabel
Definition
labels the x-axis
Term
ylabel
Definition
labels the y-axis
Term
title
Definition
labels the plot with a title
Term
hold on/off
Definition
determines whether new graphics objects are added to the graph or replace objects in the graph;retains the current plot and certain axes properties so that subsequent graphing commands add to the existing graph
Term
LineSpec
Definition
indicate the line styles, marker types, and colors you want to display
Term
figure
Definition
creates a new figure object using the values of the properties specified
Term
surf
Definition
view mathematical functions over a rectangular region
Term
mesh
Definition
create wireframe parametric surfaces
Term
legend
Definition
places a legend on various types of graphs
Term
get(0)
Definition
returns the current values of all user-settable properties
Term
close all
Definition
deletes all figures whose handles are not hidden
Term
xlsread
Definition
returns numeric data in double array num from the first sheet in the Microsoft Excel spreadsheet file named filename
Term
load
Definition
loads all the variables from the MAT-file matlab.mat
Term
std
Definition
the standard deviation
Term
property editor
Definition
enables you to access a subset of the selected object's properties and change them
Term
switch
Definition
executes one set of statements selected from an arbitrary number of alternatives
Term
ceil
Definition
rounds up
Term
floor
Definition
rounds down
Term
strcmp
Definition
compares two strings to see if they are the same; case sensitive
Term
strcmpi
Definition
compares two strings to see if they are the same; not case sensitive
Term
xlswrite
Definition
(filename, M) writes matrix M to the Excel file filename
Term
uigetfile
Definition
displays a modal dialog box that lists files in the current directory and enables the user to select or type the name of a file to be opened
Term
fullfile
Definition
builds a full file specification f from the directories and filename specified
Term
uiputfile
Definition
displays a modal dialog box used to select or specify a file for saving
Supporting users have an ad free experience!