This preview shows page 1. Sign up to view the full content.
Unformatted text preview: disp(T1) %display table % x has 15 equally spaced values from 10 to 30 x = linspace(10,30,15) % set vector arrays for x^2, sqrt(x), log(x), and ln(x) x_sqrd = x.^2 x_sqrt = sqrt(x) x_log = log10(x) x_ln = log(x) % create T2 by transposing the vector arrays and putting them in T2 = [ x' x_sqrd' x_sqrt' x_log' x_ln'] % display statements disp(' x square of x sq root of x log(x) ln(x)') %headings disp(T2) %display table...
View Full Document
This note was uploaded on 01/22/2011 for the course ENG 006 taught by Professor Lagerstrom during the Spring '06 term at UC Davis.
- Spring '06