MATLAB: toolboxes, technical calculations. Numeric integration (1) Evaluating integral: computing a surface below a curve.

Slides:



Advertisements
Similar presentations
MATLAB Tutorial ECE 002 Professor S. Ahmadi.
Advertisements

MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
Lecture 5.
Beginning Programming for Engineers
Chapter 11: Symbolic Computing for Calculus
Calculus S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Math Review with Matlab: Differentiation.
MATLAB MATLAB is a high-level technical computing language and
Differential Equations Math Review with Matlab: Finding Solutions to Differential Equations S. Awad, Ph.D. M. Corless, M.S.E.E. D. Cinpinski E.C.E. Department.
Lab 8 User Defined Function.
Unit 7 Symbolic Processing 中華技術學院電子系 副教授 蔡樸生 副教授 林盈灝.
CSE 123 Symbolic Processing. Declaring Symbolic Variables and Constants To enable symbolic processing, the variables and constants involved must first.
MATLAB FUNDAMENTALS: USER DEFINED FUNCTIONS THE SYMBOLIC TOOLBOX HP 100 – MATLAB Wednesday, 10/29/2014
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2014 – 35148: Continuous Solution for Boundary Value Problems.
Numerical Operations S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Numerical Integration.
Introduction to Matlab. I use Matlab for: Data analysis Data plotting Image Analysis Also – Simulations (solving odes/pdes/finite element methods) – Minimisations,
Matlab Matlab is a powerful mathematical tool and this tutorial is intended to be an introduction to some of the functions that you might find useful.
Example 10.6 Calculating Power in Parallel Loads
1 Chapter 8 Calculus Operations with MATLAB We are now ready to see how calculus operations can be performed with MATLAB. It should be noted that a digital.
Modeling Printed Antennas Using The Matlab Antenna Toolbox
© 2004 The MathWorks, Inc. 1 MATLAB for C/C++ Programmers Support your C/C++ development using MATLAB’s prebuilt graphics functions and trusted numerics.
Area of a single trapezoid = h
Modeling a Dipole Above Earth Saikat Bhadra Advisor : Dr. Xiao-Bang Xu Clemson SURE 2005.
MATLAB Lecture One Monday 4 July Matlab Melvyn Sim Department of Decision Sciences NUS Business School
Ranga Rodrigo April 6, 2014 Most of the sides are from the Matlab tutorial. 1.
259 Lecture 18 The Symbolic Toolbox. 2  MATLAB has a set of built-in commands that allow us to work with functions in a fashion similar to Mathematica.
Gas Turbine in power generation control.. What does the project do? Provide a transfer function between the speed and the fuel. Provide a transfer function.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Global Optimization Techniques in Computational Electromagnetics Zbyněk Raida Dept. of Radio Electronics Brno University of Technology Brno, Czechia.
MATLAB Basics. The following screen will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.
MAT 1221 Survey of Calculus Maple
Chapter 2: First Steps in MuPAD MATLAB for Scientist and Engineers Using Symbolic Toolbox.
Analytical Toolbox Differential calculus By Dr J.P.M. Whitty.
Introduction To this point MATLAB has been used to answer questions with a numeric value ▫Variables are assigned specific values ▫Answers are numbers MATLAB.
MATLAB Harri Saarnisaari, Part of Simulations and Tools for Telecommunication Course.
Calculations Chapter 11 Library of math functions, and constants cos, sin, tan, abs, min, max, log, random, sqrt, pow, exp Constants.PI,.E Use care with.
Scientific Computing General Least Squares. Polynomial Least Squares Polynomial Least Squares: We assume that the class of functions is the class of all.
VC.10 Surface Area Calculations and Surface Integrals (Day 2)
Chapter 6 Review: User Defined Functions Introduction to MATLAB 7 Engineering 161.
1 Lecture 1 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Recap Cubic Spline Interpolation Multidimensional Interpolation Curve Fitting Linear Regression Polynomial Regression The Polyval Function The Interactive.
Chapter 11 Calculus. Symbolic Expressions Required: > Symbolic Math Toolbox > Use Symbolic Variables.
Project Background My project goal was to accurately model a dipole in the presence of the lossy Earth. I used exact image theory developed previously.
Recap Functions with No input OR No output Determining The Number of Input and Output Arguments Local Variables Global Variables Creating ToolBox of Functions.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Equations Inequalities = > 3 5(8) - 4 Numerical
ENG004 ALGORITHMS & INT. TO PROGRAMMING Week 4 “Arrays and Matrix Operations III” Ahmet Anıl Dindar
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
CMPSC 200 Fall 2013 Lecture 37 November 18, 2013.
Chapter 16 Inductive AC Circuits.
Symbolic Toolbox Dr GUNASEKARAN THANGAVEL Lecturer & Program Co-ordinator Electronics & Telecommunication Engineering EEE Section Department of Engineering.
CALCULATION OF DECIMAL LOGORATHIM
Introduction to Programming for Mechanical Engineers (ME 319)
Area of a single trapezoid = h
ENGG 1801 Engineering Computing
4 Integrals.
Evaluate the integral. {image}
If r(t) = {image} , find r''(t).
Unit I C Language Review Ref. Book: Yashavant Kanetkar, “Let Us C”, BPB Publications, 10/E, 2010.
Evaluate the integral. {image}
Area of a single trapezoid = h
Symbolic matlab toolbox
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
symbolic math toolbox matlab
Antenna Tuners Do Not Tune Antennas
Required setup to work for my problem Visual Studio
Area of a single trapezoid = h
10.2 – Calculus with Parametric Curves
symbolic math toolbox matlab
Computer Simulation Lab
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
Presentation transcript:

MATLAB: toolboxes, technical calculations

Numeric integration (1) Evaluating integral: computing a surface below a curve

function y = sinc( x, a) % the function has to return a vector of functional values y % for the vector of input numbers x y = log( x+a).* sin( x)./( x+0.1); 1.Creating m-file, which contains the integrated function Numeric integration (2)

function out = integ( low, up) out = quadl( 'sinc', low, up, 1e-5, [], 0.5); 2.Performing integration by standard m-function quadl Numeric integration (3)

syms x a l u y = int( log( x+a).* sin( x)./( x+0.1), x, l, u) y = simple( y) pretty ( y) Symbolic integration Symbolic Math Toolbox: m-function int

h = 0.01; % sampling step y = sinc( 0:h:1, 0.5); y1 = diff( y) / h; y2a = diff( y1) / h; y2b = diff( y, 2) / h^2; Numeric differencing (1) Differencing performed by standard m-function diff

Numeric differencing (2)

syms x a y1 = diff( log( x+a).* sin( x)./( x+0.1), 'x', 1) y1 = simple( y1) pretty ( y1) y2 = diff( log( x+a).* sin( x)./( x+0.1), 'x', 2) y2 = simple( y2) pretty( y2) Symbolic differencing Symbolic Math Toolbox: m-function diff

Optimization Toolbox (1) Searching for such A, B, h,  r so that the input impedance is Z = (200 + j 0)  on the frequency f = 30 GHz

Optimization Toolbox (2) 1.Formulating fitness function: how does the optimized structure fit demands

Optimization Toolbox (3) 2.Creating m-file, which contains the fitness function function out = mstrip( x) global net Tmax Rd Xd Z = Tmax * sim( net, x); % input impedance of the dipole out = ((Rd-Z(1,:)).*(Rd-Z(1,:)) + (Xd-Z(2,:)).*(Xd-Z(2,:)))';

Optimization Toolbox (4) 3.Performing optimization by Optimization Toolbox m-function fminunc function x = toolbox global net Tmax Rd Xd load dip_616; % loading the antenna model Rd = 200; % desired value of input resistance Xd = 0; % desired value of input reactance x0 = [ 5.00; 0.05; 2.00; 1.25]; % A, B, eps, h x = fminunc('mstrip', x0)