Example of Basic Script file
Lisa Oberbroeckling, Spring 2012
Contents
clc x=linspace(-pi,pi); y=sin(x); plot(x,y)
second problem
A=[1 2 3;4 5 6;7 8 9]; B=[A(1,:); -4*A(1,:) + A(2,:); A(3,:)] B2=[B(1,:); B(2,:); -7*B(1,:) + B(3,:)] C=[B2(1,:); -1/3*B2(2,:); B2(3,:)]
B = 1 2 3 0 -3 -6 7 8 9 B2 = 1 2 3 0 -3 -6 0 -6 -12 C = 1 2 3 0 1 2 0 -6 -12