Connexions

You are here: Home » Content » A Brief Introduction to Engineering Computation with MATLAB » Problem Set

• Preface
• Study Guide

• 8. Publishing with MATLAB

• 9. Postscript

Recently Viewed

This feature requires Javascript to be enabled.

Inside Collection (Textbook):

Textbook by: Serhat Beyenir. E-mail the author

Problem Set

Module by: Serhat Beyenir. E-mail the author

Summary: Problem Set for What is MATLAB?

Exercise 1

Learn about the following terms using help command:

1. workspace
2. plot
3. clear
4. format
5. roots

Solution

1. 
>> help workspace
WORKSPACE Open Workspace browser to manage workspace
WORKSPACE Opens the Workspace browser with a view of the variables
in the current Workspace.  Displayed variables may be viewed,
manipulated, saved, and cleared.

Reference page in Help browser
doc workspace

>>

2. >> help plot
PLOT   Linear plot.
PLOT(X,Y) plots vector Y versus vector X. If X or Y is a matrix,
then the vector is plotted versus the rows or columns of the matrix,
whichever line up.  If X is a scalar and Y is a vector, disconnected
line objects are created and plotted as discrete points vertically at
X. ..........

3. >> help clear
CLEAR  Clear variables and functions from memory.
CLEAR removes all variables from the workspace.
CLEAR VARIABLES does the same thing.
CLEAR GLOBAL removes all global variables.
CLEAR FUNCTIONS removes all compiled M- and MEX-functions.

CLEAR ALL removes all variables, globals, functions and MEX links.
CLEAR ALL at the command prompt also removes the Java packages import
list.
......
4. >> help format
FORMAT Set output format.
FORMAT with no inputs sets the output format to the default appropriate
for the class of the variable. For float variables, the default is
FORMAT SHORT.
......

5. >> help roots
ROOTS  Find polynomial roots.
ROOTS(C) computes the roots of the polynomial whose coefficients
are the elements of the vector C. If C has N+1 components,
the polynomial is C(1)*X^N + ... + C(N)*X + C(N+1).
......

Exercise 2

List the items found in START button.

Solution

Following figure illustrates the item found in START button:

Exercise 3

List the items found under DESKTOP menu.

Solution

Following figure illustrates the item found under DESKTOP menu:

Exercise 4

List the items found under HELP menu.

Solution

Following figure illustrates the item found under HELP menu:

Exercise 5

Use Function Browser to learn about natural logarithm. (hint: Help Menu > Function Browser > Mathematics > Elementary Math > Exponential)

Solution

Following figure shows the solution:

Content actions

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks