


Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Prepare-se para as provas
Estude fácil! Tem muito documento disponível na Docsity
Prepare-se para as provas com trabalhos de outros alunos como você, aqui na Docsity
Encontra documentos específicos para os exames da tua universidade
Prepare-se com as videoaulas e exercícios resolvidos criados a partir da grade da sua Universidade
Responda perguntas de provas passadas e avalie sua preparação.
Ganhe pontos para baixar
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
apostila de Matlab
Tipologia: Notas de estudo
1 / 4
Esta página não é visível na pré-visualização
Não perca as partes importantes!



Simulink Tutorial University of Texas, Austin VLSI Communication Systems Spring 2005
Disclaimer: Tools are made to be played with
Overview:
Simulink is a software add-on to Matlab used for simulating dynamic systems – governed by a set of differential equations for continuous time and a set of difference equations for discrete time systems. It uses the powerful and extensive numerical analysis capability of Matlab. Typically, the Matlab ode or pde solvers are used to solve sets of linear and nonlinear ordinary differential equations. The dataflow is modeled by connecting standard building blocks available in the Simulink libraries and some enhanced toolboxes e.g. DSPs, Neural Net.
Simulink supports modeling at different levels of abstractions thereby facilitating evaluation of architectural level tradeoffs for complex systems.
Starting Simulink:
Given below is a snapshot of the Simulink library browser.
Popular library components:
Sources and sinks Discrete and Continuous time systems Mathematical Operator Logic operators User-defined functions Subsystem Simulink extras
Creating models in Simulink:
Notes:
A template m-file for such a purpose:
%use % sign for comments
clc close all clear
initialize
BIT_PER=10e-8 %initializing the parameters TX_RX_DIST= CH_BW=2e NOISE_POW=(1e-5)^2/(1/noise_sample_time) NUM_SAMPLES=
sim bpsk_txrx %simulating the model
error=abs(MOD_IN-DEMOD_OUT); BER=sum(error)/NUM_SAMPLES
Transport delay block at receiver is used to prevent sampling the integrator output at the instant it is reset periodically in each bit period slot. The block at the transmitter side is used to time align the input and output samples.
Tips For Matlab and Simulink:
lookfor
Simulink :
The most important thing is not to trust any of the results unless they are convincing - first step in debugging is to check the settings for the "simulation configuration parameters" and the settings for all the Simulink block models’ intrinsic parameters.