Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas


Introdução à Matlab: Soma de Elementos em Matrizes, Notas de estudo de Cultura

Este documento fornece informações básicas sobre a utilização da matlab, enfatizando a computação da soma de elementos em matrizes. Apresenta o funcionamento da matlab, como obter a soma de elementos em linhas e colunas, e como transpor matrizes. Além disso, discute a representação de gráficos em matlab.

Tipologia: Notas de estudo

Antes de 2010

Compartilhado em 08/10/2008

raphael-souza-2
raphael-souza-2 🇧🇷

1 documento

1 / 185

Toggle sidebar

Esta página não é visível na pré-visualização

Não perca as partes importantes!

bg1
Coffee
Cooking Tips
Recipes & Food and Drink
Wine & Spirits
Elder Care
Babies & Toddler
Pregnancy
Acne
Aerobics & Cardio
Alternative Medicine
Beauty Tips
Depression
Diabetes
Exercise & Fitness
Hair Loss
Medicine
Meditation
Muscle Building & Bodybuilding
Nutrition
Nutritional Supplements
Weight Loss
Yoga
Martial Arts
Finding Happiness
Inspirational
Breast Cancer
Mesothelioma & Cancer
Fitness Equipment
Nutritional Supplements
Weight Loss
Affiliate Revenue
Blogging, RSS & Feeds
Domain Name
E-Book
E-commerce
Email Marketing
Ezine Marketing
Ezine Publishing
Forums & Boards
Internet Marketing
Online Auction
Search Engine Optimization
Spam Blocking
Streaming Audio & Online
Music
Traffic Building
Video Streaming
Web Design
Web Development
Web Hosting
Web Site Promotion
Broadband Internet
VOIP
Computer Hardware
Data Recovery & Backup
Internet Security
Software
Advertising
Branding
Business Management
Business Ethics
Careers, Jobs & Employment
Customer Service
Marketing
Networking
Network Marketing
Pay-Per-Click Advertising
Presentation
Public Relations
Sales
Sales Management
Sales Telemarketing
Sales Training
Small Business
Strategic Planning
Entrepreneur
Negotiation Tips
Team Building
Top Quick Tips
Book Marketing
Leadership
Positive Attitude Tips
Goal Setting
Innovation
Success
Time Management
Public Speaking
Get Organized - Organization
Credit
Currency Trading
Debt Consolidation
Debt Relief
Loan
Insurance
Investing
Mortgage Refinance
Personal Finance
Real Estate
Taxes
Stocks & Mutual Fund
Structured Settlements
Leases & Leasing
Wealth Building
Home Security
Mobile & Cell Phone
Video Conferencing
Satellite TV
Dating
Relationships
Game
Casino & Gambling
Humor & Entertainment
Music & MP3
Photography
Golf
Attraction
Motorcycle
Fashion & Style
Crafts & Hobbies
Home Improvement
Interior Design & Decorating
Landscaping & Gardening
Pets
Marriage & Wedding
Holiday
Fishing
Aviation & Flying
Cruising & Sailing
Outdoors
Vacation Rental
Book Reviews
College & University
Psychology
Science Articles
Religion
Personal Technology
Humanities
Language
Philosophy
Poetry
Book Reviews
Medicine
Coaching
Creativity
Dealing with Grief & Loss
Motivation
Spirituality
Stress Management
Article Writing
Writing
Political
Copywriting
Parenting
Divorce
Copyright © 2007
FindBestStuff
FindBestStuff.com
FindBestStuff.
com
Web FindBestStuff
Google Search
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe Introdução à Matlab: Soma de Elementos em Matrizes e outras Notas de estudo em PDF para Cultura, somente na Docsity!

Coffee

Cooking Tips

Recipes & Food and Drink

Wine & Spirits

Elder Care

Babies & Toddler

Pregnancy

Acne

Aerobics & Cardio

Alternative Medicine

Beauty Tips

Depression

Diabetes

Exercise & Fitness

Hair Loss

Medicine

Meditation

Muscle Building & Bodybuilding

Nutrition

Nutritional Supplements

Weight Loss

Yoga

Martial Arts

Finding Happiness

Inspirational

Breast Cancer

Mesothelioma & Cancer

Fitness Equipment

Nutritional Supplements

Weight Loss

Affiliate Revenue

Blogging, RSS & Feeds

Domain Name

E-Book

E-commerce

Email Marketing

Ezine Marketing

Ezine Publishing

Forums & Boards

Internet Marketing

Online Auction

Search Engine Optimization

Spam Blocking

Streaming Audio & Online

Music

Traffic Building

Video Streaming

Web Design

Web Development

Web Hosting

Web Site Promotion

Broadband Internet

VOIP

Computer Hardware

Data Recovery & Backup

Internet Security

Software

Advertising

Branding

Business Management

Business Ethics

Careers, Jobs & Employment

Customer Service

Marketing

Networking

Network Marketing

Pay-Per-Click Advertising

Presentation

Public Relations

Sales

Sales Management

Sales Telemarketing

Sales Training

Small Business

Strategic Planning

Entrepreneur

Negotiation Tips

Team Building

Top Quick Tips

Book Marketing

Leadership

Positive Attitude Tips

Goal Setting

Innovation

Success

Time Management

Public Speaking

Get Organized - Organization

Credit

Currency Trading

Debt Consolidation

Debt Relief

Loan

Insurance

Investing

Mortgage Refinance

Personal Finance

Real Estate

Taxes

Stocks & Mutual Fund

Structured Settlements

Leases & Leasing

Wealth Building

Home Security

Mobile & Cell Phone

Video Conferencing

Satellite TV

Dating

Relationships

Game

Casino & Gambling

Humor & Entertainment

Music & MP

Photography

Golf

Attraction

Motorcycle

Fashion & Style

Crafts & Hobbies

Home Improvement

Interior Design & Decorating

Landscaping & Gardening

Pets

Marriage & Wedding

Holiday

Fishing

Aviation & Flying

Cruising & Sailing

Outdoors

Vacation Rental

Book Reviews

College & University

Psychology

Science Articles

Religion

Personal Technology

Humanities

Language

Philosophy

Poetry

Book Reviews

Medicine

Coaching

Creativity

Dealing with Grief & Loss

Motivation

Spirituality

Stress Management

Article Writing

Writing

Political

Copywriting

Parenting

Divorce

Getting Started with MATLAB ®

Version 7

M ATLAB

The Language of Technical Computing

i

Contents

1

2

3

iv Contents

4

v

5 6

  • What Is MATLAB? 1- Introduction
    • The MATLAB System 1-
  • MATLAB Documentation 1-
    • MATLAB Online Help 1-
  • Starting and Quitting MATLAB 1-
    • Starting MATLAB 1-
    • Quitting MATLAB 1-
    • MATLAB Desktop 1-
  • Matrices and Magic Squares 2- Matrices and Arrays
    • Entering Matrices 2-
    • sum, transpose, and diag 2-
    • Subscripts 2-
    • The Colon Operator 2-
    • The magic Function 2-
  • Expressions 2-
    • Variables 2-
    • Numbers 2-
    • Operators 2-
    • Functions 2-
    • Examples of Expressions 2-
  • Working with Matrices 2- ii Contents
    • Generating Matrices 2-
    • The load Function 2-
    • M-Files 2-
    • Concatenation 2-
    • Deleting Rows and Columns 2-
  • More About Matrices and Arrays 2-
    • Linear Algebra 2-
    • Arrays 2-
    • Multivariate Data 2-
    • Scalar Expansion 2-
    • Logical Subscripting 2-
    • The find Function 2-
  • Controlling Command Window Input and Output 2-
    • The format Function 2-
    • Suppressing Output 2-
    • Entering Long Statements 2-
    • Command Line Editing 2-
  • Overview of MATLAB Plotting 3- Graphics
    • The Plotting Process 3-
    • Graph Components 3-
    • Figure Tools 3-
    • Arranging Graphs Within a Figure 3-
    • Selecting Plot Types 3-
  • Editing Plots 3-
    • Plot Editing Mode 3-
    • Using Functions to Edit Graphs 3-
  • Examples — Using MATLAB Plotting Tools 3- iii
    • Modifying the Graph Data Source 3-
  • Preparing Graphs for Presentation 3-
    • Modify the Graph to Enhance the Presentation 3-
    • Printing the Graph 3-
    • Exporting the Graph 3-
  • Basic Plotting Functions 3-
    • Creating a Plot 3-
    • Multiple Data Sets in One Graph 3-
    • Specifying Line Styles and Colors 3-
    • Plotting Lines and Markers 3-
    • Imaginary and Complex Data 3-
    • Adding Plots to an Existing Graph 3-
    • Figure Windows 3-
    • Multiple Plots in One Figure 3-
    • Controlling the Axes 3-
    • Axis Labels and Titles 3-
    • Saving Figures 3-
  • Mesh and Surface Plots 3-
    • Visualizing Functions of Two Variables 3-
  • Images 3-
    • Reading and Writing Images 3-
  • Printing Graphics 3-
  • Handle Graphics 3-
    • Using the Handle 3-
    • Graphics Objects 3-
    • Setting Object Properties 3-
    • Specifying the Axes or Figure 3-
    • Finding the Handles of Existing Objects 3-
  • Animations 3-
    • Erase Mode Method 3-
    • Creating Movies 3-
  • Flow Control 4- Programming
    • if 4-
    • switch and case 4-
    • for 4-
    • while 4-
    • continue 4-
    • break 4-
    • try - catch 4-
    • return 4-
  • Other Data Structures 4-
    • Multidimensional Arrays 4-
    • Cell Arrays 4-
    • Characters and Text 4-
    • Structures 4-
  • Scripts and Functions 4-
    • Scripts 4-
    • Functions 4-
    • Types of Functions 4-
    • Global Variables 4-
    • Passing String Arguments to Functions 4-
    • The eval Function 4-
    • Function Handles 4-
    • Function Functions 4-
    • Vectorization 4-
    • Preallocation 4-
  • What Is GUIDE? 5- Creating Graphical User Interfaces
  • Laying Out a GUI 5-
    • Starting GUIDE 5-
    • The Layout Editor 5-
  • Programming a GUI 5-
  • Desktop Overview 6- Desktop Tools and Development Environment
    • Arranging the Desktop 6-
    • Start Button 6-
  • Command Window and Command History 6-
    • Command Window 6-
    • Command History 6-
  • Help Browser 6-
  • Current Directory Browser and Search Path 6-
    • Current Directory 6-
    • Search Path 6-
  • Workspace Browser and Array Editor 6-
    • Workspace Browser 6-
    • Array Editor 6-

Introduction

1 Introduction

What Is MATLAB?

MATLAB®^ is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation. Typical uses include

- Math and computation - Algorithm development - Data acquisition - Modeling, simulation, and prototyping - Data analysis, exploration, and visualization - Scientific and engineering graphics - Application development, including graphical user interface building

MATLAB is an interactive system whose basic data element is an array that does not require dimensioning. This allows you to solve many technical computing problems, especially those with matrix and vector formulations, in a fraction of the time it would take to write a program in a scalar noninteractive language such as C or Fortran.

The name MATLAB stands for matrix laboratory. MATLAB was originally written to provide easy access to matrix software developed by the LINPACK and EISPACK projects. Today, MATLAB engines incorporate the LAPACK and BLAS libraries, embedding the state of the art in software for matrix computation. MATLAB has evolved over a period of years with input from many users. In university environments, it is the standard instructional tool for introductory and advanced courses in mathematics, engineering, and science. In industry, MATLAB is the tool of choice for high-productivity research, development, and analysis.

MATLAB features a family of add-on application-specific solutions called toolboxes. Very important to most users of MATLAB, toolboxes allow you to learn and apply specialized technology. Toolboxes are comprehensive collections of MATLAB functions (M-files) that extend the MATLAB environment to solve particular classes of problems. Areas in which toolboxes are available include signal processing, control systems, neural networks, fuzzy logic, wavelets, simulation, and many others.

1 Introduction

MATLAB Documentation

MATLAB provides extensive documentation, in both printed and online format, to help you learn about and use all of its features. If you are a new user, start with this Getting Started book. It covers all the primary MATLAB features at a high level, including many examples. The MATLAB online help provides task-oriented and reference information about MATLAB features. MATLAB documentation is also available in printed form and in PDF format.

MATLAB Online Help To view the online documentation, select MATLAB Help from the Help menu in MATLAB. The MATLAB documentation is organized into these main topics:

- Desktop Tools and Development Environment — Startup and shutdown, the desktop, and other tools that help you use MATLAB - Mathematics — Mathematical operations and data analysis - Programming — The MATLAB language and how to develop MATLAB applications - Graphics — Tools and techniques for plotting, graph annotation, printing, and programming with Handle Graphics® - 3-D Visualization — Visualizing surface and volume data, transparency, and viewing and lighting techniques - Creating Graphical User Interfaces — GUI-building tools and how to write callback functions - External Interfaces/API — MEX-files, the MATLAB engine, and interfacing to Java, COM, and the serial port

MATLAB also includes reference documentation for all MATLAB functions:

- Functions - By Category — Lists all MATLAB functions grouped into categories - Handle Graphics Property Browser — Provides easy access to descriptions of graphics object properties - External Interfaces/API Reference — Covers those functions used by the MATLAB external interfaces, providing information on syntax in the calling language, description, arguments, return values, and examples

MATLAB Documentation

The MATLAB online documentation also includes

- Examples — An index of examples included in the documentation - Release Notes — New features and known problems in the current release - Printable Documentation — PDF versions of the documentation suitable for printing

For more information about using the Help browser, see Chapter 6, “Desktop Tools and Development Environment.”

Starting and Quitting MATLAB

MATLAB Desktop When you start MATLAB, the MATLAB desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with MATLAB.

The following illustration shows the default desktop. You can customize the arrangement of tools and documents to suit your needs. For more information about the desktop tools, see Chapter 6, “Desktop Tools and Development Environment.”

Enter MATLAB functions at the Command Window prompt.

The Command History maintains a record of the MATLAB functions you ran.

1 Introduction

2 Matrices and Arrays

Matrices and Magic Squares

In MATLAB, a matrix is a rectangular array of numbers. Special meaning is sometimes attached to 1-by-1 matrices, which are scalars, and to matrices with only one row or column, which are vectors. MATLAB has other ways of storing both numeric and nonnumeric data, but in the beginning, it is usually best to think of everything as a matrix. The operations in MATLAB are designed to be as natural as possible. Where other programming languages work with numbers one at a time, MATLAB allows you to work with entire matrices quickly and easily. A good example matrix, used throughout this book, appears in the Renaissance engraving Melencolia I by the German artist and amateur mathematician Albrecht Dürer.

Matrices and Magic Squares

This image is filled with mathematical symbolism, and if you look carefully, you will see a matrix in the upper right corner. This matrix is known as a magic square and was believed by many in Dürer’s time to have genuinely magical properties. It does turn out to have some fascinating characteristics worth exploring.

Entering Matrices

The best way for you to get started with MATLAB is to learn how to handle matrices. Start MATLAB and follow along with each example.

You can enter matrices into MATLAB in several different ways:

- Enter an explicit list of elements. - Load matrices from external data files. - Generate matrices using built-in functions. - Create matrices with your own functions in M-files.

Start by entering Dürer’s matrix as a list of its elements. You only have to follow a few basic conventions:

- Separate the elements of a row with blanks or commas. - Use a semicolon, ; , to indicate the end of each row. - Surround the entire list of elements with square brackets, [ ].