g054x15

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

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

delete g054x15.txt; diary g054x15.txt clear; clc; close all; echo on % % Gilat 54/15 % % Create the Matrix B 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)] % %(b)Create a five element column vector named ub that contains the elemnts %of the third row of B ub=b(3,:)' % %(c)Create a nine element row vector named uc that contains the elements of
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)]' % %(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,:)] % 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

{[ snackBarMessage ]}

Ask a homework question - tutors are online