Engineering Fundamentals: An Introduction to Engineering, 4th ed.c

(Steven Felgate) #1

Problems 503


For problems 15.33 through 15.40, go through each line of
MATLAB code and show the result, or indicate if error will
occur by executing the commands.
15.33.A[3 1 0;4 0 1];
B[3 1 4;5 61];
C[A,B]
15.34.B[1;0;5;4];
DB
15.35.X[4 52 8];
Y[2 0 1 10];
Z(XY)
ZY(X Y)
15.36.i 5
for k1:3:7
iik;
end
valuei

15.37.A[5 0 2];
B[1 5 4];
CB.

A
15.38.i 10 ;
k 2 ;
while k 4
iik;
kk 1 ;
end
valuei
15.39.A[3 1 0;4 0 1];
B[3; 1; 4];
CA*B
15.40.X[0:1:5];
YX.

2  4 ;
plot(X,Y)
xlabel(‘X’)
ylabel(‘Y’)

Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).

圀圀圀⸀夀䄀娀䐀䄀一倀刀䔀匀匀⸀䌀伀䴀圀圀圀⸀夀䄀娀䐀䄀一倀刀䔀匀匀⸀䌀伀䴀

Free download pdf