Q2: Give the output of the following program Matlab 1. S=input('Enter the subject:','s'); 2. fprintf('subject is %s\n',S) 3. M1 = input('Enter the markl: ',); 4. M2 = input('Enter the mark2: '); 5....

i need the answer quicklyQ2: Give the output of the following<br>program<br>Matlab<br>1. S=input('Enter the subject:','s');<br>2. fprintf('subject is %s\n',S)<br>3. M1 = input('Enter the markl: ',);<br>4. M2 = input('Enter the mark2: ');<br>5. fprintf('marks are %i%i average is

Extracted text: Q2: Give the output of the following program Matlab 1. S=input('Enter the subject:','s'); 2. fprintf('subject is %s\n',S) 3. M1 = input('Enter the markl: ',); 4. M2 = input('Enter the mark2: '); 5. fprintf('marks are %i%i average is",M1,M2) 6. M=[M1 M2]; 7. A= sum(M)/2; 8. disp(A)

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here