# Lab1 - Paul Gonzales Pag757 335 Lab#1 3 EDU> P = zeros(10,2...

This preview shows pages 1–4. Sign up to view the full content.

Paul Gonzales Pag757 335 Lab #1 3) EDU>> P = zeros(10,2) P = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 EDU>> Q = ones(2,10) Q = 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4) EDU>> mean(y,2) ans = 3.2000 4.0000 1.0000 EDU>> mean(y,1) ans = 5.3333 0.3333 0 5.6667 2.3333 EDU>> sum(sum(y))/numel(y) ans = 2.7333 5)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Paul Gonzales Pag757 335 Lab #1 EDU>> y==6 ans = 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 EDU>> y>3 ans = 1 0 1 1 0 1 1 0 1 0 0 0 0 1 1 EDU>> y(y>3)=13 y = 13 -2 13 13 -1 13 13 -3 13 -2 1 -9 -1 13 13 6) y==6 y>3 y(y>3)=13 ans = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ans = 1 0 1 1 0 1 1 0 1 1 0 0 0 0 1 y =
Pag757 335 Lab #1 13 -2 13 13 -1 13 13 -3 13 13 0 -10 -2 3 13 7) EDU>> omega = 0:(pi/20):pi omega = Columns 1 through 9 0 0.1571 0.3142 0.4712 0.6283 0.7854 0.9425 1.0996 1.2566 Columns 10 through 18 1.4137 1.5708 1.7279 1.8850 2.0420 2.1991 2.3562 2.5133 2.6704 Columns 19 through 21 2.8274 2.9845 3.1416 EDU>> f = cos(omega) f = Columns 1 through 9 1.0000 0.9877 0.9511 0.8910 0.8090 0.7071 0.5878 0.4540 0.3090

This preview has intentionally blurred sections. Sign up to view the full version.

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

## This note was uploaded on 02/01/2011 for the course BME 335 taught by Professor Dunn during the Spring '10 term at University of Texas.

### Page1 / 7

Lab1 - Paul Gonzales Pag757 335 Lab#1 3 EDU> P = zeros(10,2...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online