solution7 - Temp=[98.8 99.2 97.3 70.2]; disp([name...

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

View Full Document Right Arrow Icon
% Assignment #7 % Prob. 1 disp('(a)') s1=['model#EE36 ';'serial#538942A'] s2=str2mat('model#EE36','serial#538942A') disp('(b)') S1=[s1(1,3) s1(1,5) s1(1,8) s1(2,7) s1(2,10) s1(2,12)] S2=[s1(1,[3 5 8]) s1(2,[7 10 12])] disp('(c)') fliplr(s1) flipud(s1) disp(' ') (a) s1 = model#EE36 serial#538942A s2 = model#EE36 serial#538942A (b) S1 = dlE#84 S2 = dlE#84 (c) ans = 63EE#ledom A249835#laires ans = serial#538942A model#EE36 % Prob. 2 wt=[30 38 29]; n=length(wt); disp([repmat('sand weight = ',n,1) num2str(wt') repmat(' lb',n,1)]) disp(' ') sand weight = 30 lb sand weight = 38 lb sand weight = 29 lb % Prob. 3 name=str2mat('Student #1 ','Student #2 ','Student #3 ','Instructor ');
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Temp=[98.8 99.2 97.3 70.2]; disp([name num2str(Temp') repmat(' F',4,1)]) disp(' ') Student #1 98.8 F Student #2 99.2 F Student #3 97.3 F Instructor 70.2 F % Prob. 4 fprintf('We dance around in a circle and suppose\nWhile the secret sits in the middle and knows.\n') disp(' ') We dance around in a circle and suppose While the secret sits in the middle and knows. % Prob. 5 fprintf('We dance ''round in a circle and suppose\nWhile the secret sits in the middle and knows.') We dance 'round in a circle and suppose While the secret sits in the middle and knows....
View Full Document

Page1 / 2

solution7 - Temp=[98.8 99.2 97.3 70.2]; disp([name...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online