Create a script (.m file) which inputs a 10 x 8 array and % isolates and returns
ID: 3790722 • Letter: C
Question
Create a script (.m file) which inputs a 10 x 8 array and
% isolates and returns the 4 x 4 elements starting at 4,3 as a 10 x 8 array. I have tried :
ten_by_eight_input = randi([0,100],10,8);
display(ten_by_eight_input);
ten_by_eight_output = ten_by_eight_input(4:10, 3:8);
SO 1.35 GB 100% Wed 8 Feb 15:44 ANANDA KUMAR THUMMAPUDI a E MATLAB Window Help Editor Users/AnandaK MATLAB R2013a EDITOR VIEW Search Documentation PLOTS APPS HOME Find Files nsert R LG New Variable Find Files Compare Comment Go To Bre New Open Open Variable SIMULINK ENVIRONMENT RESOURCES New open Compare import Save Find Clear Workspace Script Workspace NAVIGATE VARIABLE O min myFunction m O max my Function m Gi A Users AnandaKumarThummapudi Documents MATLAB input a 10 x 8 array and isolates and returns the 4 x 4 elements starting a Curr Command Window B Input ten by eight input Name New to MATLAB? Watch this Video, see Examples, or read Getting Started & Output ten by eight output 3D ten by eightArrayExp ten by eight input randi 0,100 10 8); 94 97 71 20 62 91 3D disp (ten by eight input); 48 38 70 46 73 11 ten by eight input (4:7 3:6 ten by eight output A6 23 80 33 88 38 35 disp (ten by eight output); A7. 40 30 14 88 79 74 92 78 10 71 58 48 47 46 96 64 44 Ab. Problem 03) inputs a 10 x 8 array and 56 53 25 40 82 54 44 B isolates and returns the 4 x 4 elements starting a 7x t) Ad 12 76 91 37 18 90 54 13 B Input ten by eight input ans, 100 54 66 97 43 31 21 14 & Output ten by eight output 97 43 17 41 33 45 areaC 15 54 54 28 85 60 18 12 59 areaC ten by eight input randi 0,100 10 8); An areaC disp (ten by eight input); 17 ten by eight output ten by eight inputs (7:10, 5:8) Ap. d cols 18 19 disp (ten by eight output); Ar, lengt 20 Ar, 24 46 63 11 86 19 96 90 Co 84 64 63 41. 76 50 58 86 92 33 89 69 34 76 58 Arr. 97 16 81 55 98 42 74 86 49 72 100 28 15 83 22 58 99 21 13 82 89 15 Arr. 22 43 12 44 69 63 46 41 Arr. 54 89 23 96 91 74 62 76 39 61 81 94 75 35 18 61 47 90 84 15 As 69 63 46 41. Au 91 74 62 Avr 61 81 94 75 Av. 90 84 15 B. ba Details 4 usages of "ten by eight input" foundExplanation / Answer
Matlab code:
ten_by_eight_input = randi([0,100],10,8);
display(ten_by_eight_input);
ten_by_eight_output = zeros(10,8);
ten_by_eight_output(4:7, 3:6) = ten_by_eight_input(4:7, 3:6);
display(ten_by_eight_output);
Sample output:
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.