MATLAB Basics - Computer Communications and Networks...

34
Introdução ao MatLab Aula 1 Sistemas Telemáticos 5ºAno LESI/MCC Universidade do Minho

Transcript of MATLAB Basics - Computer Communications and Networks...

Page 1: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MatLabAula 1

Sistemas Telemáticos5ºAno LESI/MCC

Universidade do Minho

Page 2: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLAB

O MATLAB é uma linguagem de programação e um ambiente de desenvolvimento para o seu uso efectivo

O MATLAB é orientado à matriz pelo que o que faz normalmente com várias instruções C ou Fortran pode ser conseguido com poucas linhas usando as operações sobre matrizes e vectores embebidas no MATLAB.

Page 3: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLAB

FORTRAN:FORTRAN:    real*8 A(10,10), B(10,10), C(10,10) real*8 A(10,10), B(10,10), C(10,10)    do i=1,10    do i=1,10    do j=1,10    do j=1,10        C(i,j) = A(i,j) + B(i,j)        C(i,j) = A(i,j) + B(i,j) 10 continue 10 continue 20 continue 20 continue

MATLAB:MATLAB: C = A + BC = A + B 

Page 4: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLAB

O MATLAB está disponível para Windows, MacIntosh, Unix e outros sistemas operativos

Page 5: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLAB

MATLAB, que é o acrónimo de MATrix LABoratory, é um sistema ou ambiente potente para fazer cálculos matemáticos, científicos e de engenharia.

Page 6: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLAB

• O MATLAB é um pacote de alto desempenho para computação numérica e visualização

• O MATLAB é um sistema interactivo cujo dado básico, a matriz, não precisa de dimensionamento

Page 7: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLABO MATLAB suporta vários tipos de gráficos e superfícies : • linha(x vs. y), • Barras, • Diagrama de sectores(pie), • Paramétricos, • Polar, • Curvas de nível, • Densidade, • Eixos logaritmicos, • Superfície, • Paramétricos a 3D e esféricos• Etc...

Page 8: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLAB• MATLAB tem um grande número de módulos de

software adicionáveis, chamados toolbox , que realizam computações mais especializadas

Signal & Image Processing  Signal Processing- Image Processing Communications

- System Identification - Wavelet  Filter Design    Control Design  Control System - Fuzzy Logic - Robust Control - µ-

Analysis and Synthesis - LMI Control  - Model Predictive Control Model-Based Calibration

Mais de 60 ToolBoxes!

Page 9: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MATLAB

• No Windows o MatLab é iniciado clicando 2 vezes no ícon apropriado

Page 10: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Introdução ao MatLab

Janela deJanela deComandosComandosMATLABMATLAB

Page 11: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

FileFile

Page 12: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

EditEdit

Page 13: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

ViewView

Page 14: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

ViewView

Page 15: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

ViewView

Page 16: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

WebWeb

Page 17: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

HelpHelp

Page 18: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 19: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

MATLAB IntroductionMATLAB Introduction

MATLAB includes hundreds of functions for:

• Data analysis and visualization, • Numeric and symbolic computation, • Engineering and Scientific graphics, • Modeling, simulation, and prototyping, • Eigenvalue, singular value

Page 20: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Demonstrações MatLab

São inexcedíveis uma vez que dão uma ideia das capacidades do MatLab.Um conjunto definido em compreensão está disponível teclando o comando >>demo na linha de comandos MatLab

Page 21: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 22: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

MATLAB manipula escalares, vectores and matrizes:

• Operações básicas com matrizes, • Inversas of matrizes, • Grafos de matrizes, • Manipulação de matrizes, • Programação, desenvolvimento de

aplicações, concepção de Interfaces Gráficas para o Utilizador (GUI)

Demos MatLab

Page 23: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 24: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Demos MatLab

O MATLAB tem capacidades gráficas notáveis:

• 2-D e 3-D, • Superfícies 3-D, • Funções complexas• ...

Page 25: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 26: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 27: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 28: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

DEMOS MatLab

Muitas toolboxes: • A de Controlo é uma das

mais importantes. • Resposta de Circuitos RLC, • Margens de ganho e fase, • ....

Page 29: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 30: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Demos MatLab

MATLAB tem muitas toolboxes: • Toolbox de Processamento de Sinal

– Concepção de Filtros– Filtragem de sinais– Análise Espectal– Transformadas de Fourier Discreta e

Contínua– …

Page 31: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 32: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas

Demos MatLab

• O Simulink dá a possibilidade de simular um grande número de sistemas dos mais simples aos complexos.

Page 33: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas
Page 34: MATLAB Basics - Computer Communications and Networks Groupmarco.uminho.pt/disciplinas/ST/matlab-1.ppt · PPT file · Web view2004-09-26 · Introdução ao MatLab Aula 1 Sistemas