{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

BENG 449 Problem 2 2

# BENG 449 Problem 2 2 - EIEIDE lD:3D PM HHTLHE Camuund...

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

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: EIEIDE lD:3D PM HHTLHE Camuund Hindaw l at 3 -IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII------------ 3*} % EEHG 449 -- Prahlem Set 2; ﬁuestian E % Written by Alex Lemun A - [E T 9 T 5 3 l 5 5 5 E l E 5]; % Put the expressians ta be evaluated inta a cell array P522exp:essians[l} - 'A'; P522exp:essiuns[2} - 'A"'; P522exp:essians[3} - 'H[:;[l 4]]'; P522exp:essians[4} - 'ﬁ[[2 3];[3 l]]'; P522exp:essians[5} - 'reshape[i;2;ﬁ]'; P522exp:essians[ﬁ} - 'A[:]'; P522exp:essians[T} - 'flipud[i]'; P522exp:essians[3} - 'flipl:[ﬂ]'; P522exp:essians[9} - '[A A[:;end]]'; P522exp:essiuns[lﬂ} - 'A[l:3;:]'; P522exp:essians[ll} - '[ﬁ;ﬁ[l:2;:]]'; P522exp:essians[li} - 'sum[ﬁ]'; P522exp:essians[l3} - 'sum[i"]'; P522exp:essians[l4} - 'sum[i;2]'; P522exp:essians[l§} - '[[A;sum[i]] [sum[i;2];sum[i[:]]]]'g disp[[' ']] disp[['Results fa: BERG 449 Prablem Set 2; Guestian 2:']] % Eusluste the expressiuns and display the results far i - l:length[P522exp:essians] if[ i -- l ] disp[['ﬂ. '; F52Ee:u|:l:-:I:ess:i.-:Ins[l}.l ' -']] else disp[[[i + 'a' — E].I '. ', P522exp:essi-:Ins[i}|I ' -']] end disp[eval[P522expressians[i}]] end Results fa: BERG 449 Prahlem Set 2; ﬁuestian E: D- A - E T 9 T 3 l 5 E E l 2 5 s. A' - E 3 E T l l 9 5 E T E 5 b. A[:,[1 4]] - 2 T 3 E E 5 c. an: 3],[3 1]] - EFEEDE 1D:3D PM HHTLHE Camuund Windaw 2 cf 3 d. :E:hape[ﬁ;2;ﬁ] - E E l 9 E E 3 T l 5 T 5 E. A[:] - 2 3 E T l l 9 5 2 T E 5 f. flipud[ﬁ] - B l 2 5 3 l 5 E 2 T 9 T g. flipl:[ﬁ] - T 9 T E E 5 l 3 5 E l E h. [A A[:,End]] - 2 T 9 T T 3 l 5 E E E l E 5 5 L. ﬁ[l:3;:] - E T 9 T 3 l 5 E B l 2 5 j. [A5H[l:2;:]] - E T 9 T 3 l 5 E E l E 5 E T 9 T 3 l 5 E k. =um[l] - l3 9 16 13 l- :um[ﬁ'] - 2.35.9333 ll]:3|:| PH HHTLPL'E- Gunman-:1 Wind-aw 3 -:If 3 — 25 1.5 1.6 I11. EUR-ILFLJE] - 25 15 15 n. [[A551JI11LPLJ] [=11I11[.PL|.E];=1.1|11[.PL[:]]]] - 2 'I' 9 'I' 25 3 1. 5 IE 1.5 E l E 5 16 13 El 16 13 56 :-:- ...
View Full Document

{[ snackBarMessage ]}