g054x15 - %the second, fourth and fifth columns of B. %

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

View Full Document Right Arrow Icon
% % Gilat 54/15 % % Create the Matrix B b= [15 12 9 6 3; 2 4 6 8 10; 6 12 18 24 30] b = 15 12 9 6 3 2 4 6 8 10 6 12 18 24 30 %(a)Create a six element column vector named ua that contains the elements of the %second and third row. % ua=[b(:,2);b(:,4)] ua = 12 4 12 6 8 24 % %(b)Create a five element column vector named ub that contains the elemnts %of the third row of B ub=b(3,:)' ub = 6 12 18 24 30 % %(c)Create a nine element row vector named uc that contains the elements of
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %the second, fourth and fifth columns of B. % uc=[b(:,2);b(:,4);b(:,5)]' uc = 12 4 12 6 8 24 3 10 30 % %(d)Create a eight elemnet row vector named ud that contains the elements %of the first column and first row of B ud=[b(:,1)',b(1,:)] ud = 15 2 6 15 12 9 6 3 % x = linspace(-15,15); y = sin(x) ./ x; plot(x,y); grid on xlabel('x'); ylabel('y') title('Gilat 0/0') axis([-15 15 -0.5 1.5]) % echo off; diary off...
View Full Document

This note was uploaded on 06/18/2009 for the course MATH 151 taught by Professor Artbelmonte during the Spring '06 term at Texas A&M.

Ask a homework question - tutors are online