02 Matlab and Roots I

2149 21232 48 234123 2964

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: he values in area as the y values. Point to remember: linspace(start, end, n) creates an array containing n evenly spaced values starting at start and end at end. 6 1/10/2013 The example below illustrates the difference between regular matrix multiplication (assumed) and element by element multiplication (specified by using the “dot” form of the operator). >> a = [ 1 2 ; 3 4] a = 1 2 3 4 >> b = [ 5 6 ; 1 2] b = 5 6 1 2 >> a*b % Matrix multiplication ans = 7 10 19 26 >> a.*b % Element by element multiplication ans = 5 12 3 8 Scalar op Array Array op Array +, Dot not permitted ‐ [1 2 3] + 4 = [5 6 7] op Array op Scalar Dot not permitted 9 – [1 2 3] = [8 7 6] Dot not permitted [1 2...
View Full Document

Ask a homework question - tutors are online