Matlab: vectores ones(1,5); %1 1 1 1 1 zeros(1,5); %0 0 0 0 0 1:5; %1 2 3 4 5 1:2:9; %1 3 5 7 9 linspace(0,1,5) ; %0 0.2500.

Slides:



Advertisements
Similar presentations
Cod. Máq.Ensambl B mov AX,20 BB 0045 mov BX,45 01D8 add AX,BX A mov[10],AX DIRECCION XXXX:0000 XXXX:0003 XXXX:0006 XXXX:0008 XXXX:000A XXXX:000C.
Advertisements

MATLAB Examples. CS 1112 MATLAB Examples Find the number of positive numbers in a vector x = input( 'Enter a vector: ' ); count = 0; for ii = 1:length(x),
Matlab ones(1,5); % zeros(1,5); % :5; % :2:9; % linspace(0,1,5) ; %
MATLAB - Basics Centro de Informática Universidade Federal de Pernambuco Aprendizagem de Máquina – IN1102 Arley Ristar –
CIVL3310 STRUCTURAL ANALYSIS Professor CC Chang Introduction to Matrix based techniques.
AB 11 22 33 44 55 66 77 88 99 10  20  19  18  17  16  15  14  13  12  11  21  22  23  24  25  26  27  28.
1/03/09 De 89 à 98. 1/03/09 De 89 à 98 1/03/09 De 89 à 98.
1 Press Ctrl-A ©G Dear 2008 – Not to be sold/Free to use Binomial Products Stage 6 - Year 11 Mathematic (Preliminary)
Solving Equations by factoring Algebra I Mrs. Stoltzfus.
Functions. Downloads  Today’s work is in: matlab_lec02.m  Functions we need today: myfunction.m, windsorise.m, npv.m.
Chemical order & disorder in metallic alloy Calculation of Bragg and Diffuse Scattering Correlation length in the Mean-Field approach Correlation Length.
Solution of Simultaneous Linear Algebraic Equations: Lecture (I)
FACTORING ALGEBRAIC EXPRESSIONS
Special Products Section 6.4. Find the product. (x + 2)(x + 2) (x + 3)(x + 3)
(2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition.
COMP 116: Introduction to Scientific Programming Lecture 7: Matrices and Linear Systems.
Matlab tutorial course Lesson 2: Arrays and data types
Martin Ellison University of Warwick and CEPR Bank of England, December 2005 Introduction to MATLAB.
Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,

Selection Programming EE 100. Outline introduction Relational and Logical Operators Flow Control Loops Update Processes.
Overview Definitions Basic matrix operations (+, -, x) Determinants and inverses.
PRE-ALGEBRA. Lesson 4-8 Warm-Up PRE-ALGEBRA How do you divide powers with the same base? Rule: When you divide numbers with the same base, subtract the.
Warm ups. Return Quizzes Let’s go over them!! 9-8 Special Products Objective: To identify and expand the three special products.
Factoring by Grouping. Factoring Technique #3 Factoring By Grouping for polynomials with 4 or more terms.
Vectors (9) Lines in 3D Lines in 3D Angle between skew lines Angle between skew lines.
Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz SUNY-New Paltz “Lecture 2”
Polynomials UC Berkeley Fall 2004, E77 Copyright 2005, Andy Packard. This work is licensed under the Creative Commons.
Introduction to Matlab Part II 1Daniel Baur / Introduction to Matlab Part II Daniel Baur / Michael Sokolov ETH Zurich, Institut für Chemie- und Bioingenieurwissenschaften.
WARM UP Find the product. 1.) (m – 8)(m – 9) 2.) (z + 6)(z – 10) 3.) (y + 20)(y – 20)
Operations with 2x2 matrices IB SL/HL
Factoring Trinomials. To factor a trinomial squares, use the following relationships. A 2 + 2AB + B 2 = (A + B)(A + B) A 2 – 2AB + B 2 = ( A – B)(A –
Bellwork: Factor Each. 5x2 + 22x + 8 4x2 – 25 81x2 – 36 20x2 – 7x – 6
Multiplying Powers Dividing Powers Zero ExponentsNegative.
PROPERTIES OF REAL NUMBERS. COMMUTATIVE PROPERTY OF ADDITION What it means We can add numbers in any order Numeric Example Algebraic Example
MATRICES Operations with Matrices Properties of Matrix Operations

1 for – while – switch ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
Intro to Matlab Yipei Wang & Qihui Li {yipeiw,
Matlab Tutorial Iman Moazzen First Session – September 11, 2013.
基 督 再 來 (一). 經文: 1 你們心裡不要憂愁;你們信神,也當信我。 2 在我父的家裡有許多住處;若是沒有,我就早 已告訴你們了。我去原是為你們預備地去 。 3 我 若去為你們預備了地方,就必再來接你們到我那 裡去,我在 那裡,叫你們也在那裡, ] ( 約 14 : 1-3)
No abandones - R. Kipling
。 33 投资环境 3 开阔视野 提升竞争力 。 3 嘉峪关市概况 。 3 。 3 嘉峪关是一座新兴的工业旅游城市,因关得名,因企设市,是长城文化与丝路文化交 汇点,是全国唯一一座以长城关隘命名的城市。嘉峪关关城位于祁连山、黑山之间。 1965 年建市,下辖雄关区、镜铁区、长城区, 全市总面积 2935.
LAB 2 Vectors and Matrices Dr.Abdel Fattah FARES.
ES2501: Introduction to Static Systems (2004E) Quiz #5
Warm up 1.) (3, 2, -4), (-1, 0, -7) Find the vector in standard position and find the magnitude of the vector.
Linear Algebra Lecture 2.
Do Now: Factor the polynomial. (5.4 worksheet B)
L8 inverse of the matrix.
Aim: Full House Grid: 9 Grid Play: Calculate answer & cross it off
£"'>£"'>.I.I ' ·.· · ·..I.
تصمیم‌گیری و کنترل روند، استفاده از حلقه‌ها و دستورات شرطی در متلب
תרגול 6 בקר ומסלול נתונים חלק שני
תרגול 6 בקר ומסלול נתונים חלק שני
محاسبات عددی و برنامه نویسی
Lecture 11 Matrices and Linear Algebra with MATLAB
Слайд-дәріс Қарағанды мемлекеттік техникалық университеті
.. -"""--..J '. / /I/I =---=-- -, _ --, _ = :;:.
Multiplicative Inverses of Matrices and Matrix Equations
Matrix Operations and Their Applications
CS 175 Project in AI Discussion -- matlab
II //II // \ Others Q.
Математици-юбиляри.
I1I1 a 1·1,.,.,,I.,,I · I 1··n I J,-·
CS100A Lecture 21 Previous Lecture This Lecture
A STAAR REVIEW CIRCUIT A # 1-16 M. N. O. P..
BETONLINEBETONLINE A·+A·+
. '. '. I;.,, - - "!' - -·-·,Ii '.....,,......, -,
Matrices - Operations INVERSE OF A MATRIX
Properties of Numbers Review Problems.
Presentation transcript:

Matlab: vectores ones(1,5); % zeros(1,5); % :5; % :2:9; % linspace(0,1,5) ; % rand(1,5); %0.xxxx 0.xxxx 0.xxxx 0.xxxx 0.xxxx a=[1 2 ; 3 4]; a(2,2); %4 arreglo(nºfila,nº columna) a(1,: ); %fila 1 a(:,2); %columna 2 a(2,2:end); %2ª a última columna de fila 2 a*a; %[7 9; 15 22] multiplicación de matrices a.*a;%[1 4;9 16] punto a punto

Matlab: instrucciones if/else, while, for d=b^2-4*a*c; if a==0 error(‘no es de 2º grado’); elseif d<0 error(‘raices imaginarias’); elseif d==0 warning(‘raices iguales’); end disp((-b+sqrt(d))/(2*a)); disp((-b-sqrt(d))/(2*a)); i=1 while i<=10 disp(i); i=i+1; end for i=1:10; %for variable=vector disp(i); %instrucciones end

Matlab: funciones %raizArea(a,b,eps,n): raiz y area de f en [a,b] function[raiz area]=raizArea(a,b,eps,n) a1=a; b1=b; while b1-a1 > eps x=(a1+b1)/2; if signo(f(x))==signo(f(a1))a1=x; else b1=x; end end raiz=(a1+b1)/2; d=(b-a)/(n-1); pares = 4*sum(abs(f(a+d : 2*d : b-d))); impares = 2*sum(abs(f(a+2*d : 2*d : b-d))); area=d/3*(f(a)+pares+impares+f(b)); function y=signo(x)%función interna del archivo if x 0 r=1; else y=0; end