hw02_mvector_sol

# hw02_mvector_sol - % format compact % --- INPUTS ---% % ---...

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

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Programmer(s) and Purdue Email Address(es): % 1. Heidi Diefes-Dux % % Section: % % Assignment #: Homework 2, Problem 4 % % Academic Integrity Statement: % % I/we have not used source code obtained from % any other unauthorized source, either modified % or unmodified. Neither have I/we provided access % to my/our code to another. The project I/we am/are submitting % is my/our own original work. % % Program Description: MATLAB Vectors % Including MATLAB Textbook Holly Moore 2.10(b,c), 2.11 (c) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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.

Unformatted text preview: % format compact % --- INPUTS ---% % --- CALCULATIONS ---% problem 2.a row_vector1 = [32, 4, 81, exp(2.5), 63, cos(pi/3), 14.12] r % problem 2.b row_vector2 = [15:-5:-25]; column_vector1 = row_vector2' c % problem 2.c C = [2 4 6 8 10; 3 6 9 12 15; 7 14 21 28 35]; uc = [C(:,1), C(:,3), C(:,5)] u % --- OUTPUTS ----% 2.a % row_vector1 = % 32.0000 4.0000 81.0000 12.1825 63.0000 0.5000 14.1200 % % 2.b % column_vector1 = % 15 % 10 % 5 % % -5 % -10 % -15 % -20 % -25 % % 2.c % uc = % 2 6 10 % 3 9 15 % 7 21 35...
View Full Document

## This note was uploaded on 05/02/2011 for the course ENGR 132 taught by Professor Kutson during the Spring '11 term at Purdue University-West Lafayette.

### Page1 / 2

hw02_mvector_sol - % format compact % --- INPUTS ---% % ---...

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

View Full Document
Ask a homework question - tutors are online