Matlab 1

Matlab 1 - Matlab 1 Leonard Harpster A06802204 20F C04...

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: Matlab 1 Leonard Harpster A06802204 20F C04 Exercise 1.1 >> l+e+o+n+a+r+d+h+a+r+p+s+t+e+r ans = 174 Exercise 1.2 >> z = 25-(100-7*exp(5+cos(pi/3))) z= 1.6378e+003 Exercise 1.3 >> Fibonacci = [1 1 2 3;5 8 13 21;34 55 89 144;233 377 610 987] Fibonacci = 1 5 34 233 1 2 3 8 13 21 55 89 144 377 610 987 Exercise 1.4 >> A = [Fibonacci(3,2:3);Fibonacci(4, 2:3)] A= 55 89 377 610 Exercise 1.5 I expect A + B to be equal to B+A. >> A * B ans = 0.5276 0.5906 0.7013 0.9413 >> B*A ans = 1.1664 1.3108 1.3461 1.5272 >> A+B ans = 0.5207 1.1288 1.2655 1.2240 >> B+A ans = 0.5207 1.1288 1.2655 1.2240 0.6036 1.1103 1.0915 1.3977 0.7593 1.2969 0.9541 1.5265 1.1351 0.2784 0.8372 0.9875 0.6036 1.1103 1.0915 1.3977 0.7593 1.2969 0.9541 1.5265 1.1351 0.2784 0.8372 0.9875 0.5970 0.8578 0.8633 0.9544 0.9439 1.0433 1.0273 1.2499 0.6306 0.7606 0.6934 0.7966 0.9007 0.8259 1.1912 1.5645 0.9234 0.8508 1.1176 1.5188 0.7484 0.6657 0.9289 1.3770 ...
View Full Document

This note was uploaded on 04/21/2008 for the course MATH 20D taught by Professor Mohanty during the Winter '06 term at UCSD.

Ask a homework question - tutors are online