MATLAB

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Command History window

stores all commands that have been executed. Can execute a previous command by double-clicking the desired command.

diary off

suspends input to a diary file

Why should you not name a variable or m-file with the same name as a built-in function?

the built in function will become inaccessible

subarray

the name of the array followed by subscripts in parentheses indicating the row and column of the desired member.

lookfor <a>

tries to find possible functions with the desired keyword <a>

!

used to communicate with the computer's operating system. Any commands written after a ! will be treated as if they had been written at the computer's command prompt.

Figure window

window where graphics are shown in MATLAB. Usually appears as an undocked pop-up window

MATLAB arithmetic symbols

+, -, *, /, ^

3 most important kind of windows in MATLAB

1) The command window 2) The Edit window 3) Figure windows

two command-line oriented ways to get help

1) help 2) lookfor

pi

MATLAB keyword, contains the value of pi.

Do variables have to be declared?

No.

diary on

begins writing a diary file

Edit window

The window that pops up automatically when you open a new or existing m-file. Can also serve as a debugger.

array

a collection of data values organized into rows and columns and known by a single name.

script file

a file where a series of commands (a program) are stored. The entire file can be executed as a unit by writing its name in the command prompt

The fundamental unit of data in MATLAB is...

an array

M-file

another name for a script file. called so because they end with .m

Command Window

area in MATLAB where user can execute interactive commands or run programs. Contains the command prompt >>.

clf

clears current figure window

clc

clears the command window

diary filename

creates a diary file named filename that stores all the output on the command prompt.

clear all

deletes all current existing variables

clear var1 var2 ...

deletes variables var1 var2... from the workspace

which functionName

determines which function of a given name is being executed. Useful in case of an accidental name overwrite

whos

generates a list of all current variables, their size, and their class.

ctrl-C

how to terminate an execution in MATLAB. used to regain control after an infinite loop or other such issue.

How to type a command that is too long to type on a single line

include an ellipsis (...) at the end of the line. All statements on the next line will be considered part of that same line

help <b>

provides a help page explaining the use and syntax of the command <b>


संबंधित स्टडी सेट्स

Incorrect PrepU- Exam 3- Ch 23- Management of Patients With Chest and Lower Respiratory Tract Disorders

View Set

Ultrasound Procedures Final Review

View Set

Homework: Chapter 13 Video: Jones Soda: Product (4:12 mins)

View Set

Macroeconomics Chapter 14 My Econ Lab

View Set

4th Grade Math - Metric Measurement Conversions

View Set

Layers of the heart wall & Cardiac Muscle Tissue

View Set

Pearson - Seizure Disorders - Module

View Set

CHAPTER 16: Gene Regulation in Prokaryotes

View Set