Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(10/50) Question Four: A) Write the screen display for the following script in the table.4 pt./10 %script A %script A message = ('rent strapped'); Display
(10/50) Question Four: A) Write the screen display for the following script in the table.4 pt./10 %script A %script A message = ('rent strapped'); Display # Display concat = ['me'] for i = 1:3 j = 3*i; concat = (concat, message()]; disp (concat) 5 end Ex: concat=me 1 2 3 4 6 B) Write the screen display for the following script and associated function in the space provided. For this question assume each output is put on one line and there are no blank lines between the outputs. 6 pt./10 % script B message1 = 'eating good'; message2 = 'makes studying satisfying'; total = [messagel,' food ', message2]; sl=['Be ',message1 (8:11)]; 32=''; %script B Display # Display 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 for i=[7,8,2,11] s2=[S2, message2 (i)]; end 53= [message2 (16:17), message2 (21), message2 (4)]; disp(total) disp (51) disp ( [2,' ',33]) 5/7
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started