Repeat the example above tor a two dimensional matrix. Prompt the user to enter
ID: 3860873 • Letter: R
Question
Repeat the example above tor a two dimensional matrix. Prompt the user to enter the number of rows, the number of columns, and the matrix lest the program for matrices with dimensions (1 times 8 8 times 11, and (3 times 4) and be sure to include an assortment of positive, negative, and zero values as the inputs. Create a flowchart and write a MATLAB program using a while loop to calculate "pi" accurate to N digits after the decimal point using the following infinite series: Prompt the user to enter N, the number of correct digits desired to the right of the decimal point. Test the program for N - 2, 3, 4. 5, 6 and 9. Create a flowchart and write a MATI AB program to: .Prompt the user to enter numeric grades (one at a time) within a while loop. Any number of grades can be entered. The user should enter a negative number to indicate that there are no more grades. Determine the number of grades in each grade range using a standard 10 point scale: A(90 or higher), B(80-90), C (70-80). D (60-70), and F (0-60). Determine the main minimum, and average grade. Display the results including the number of grades, maximum grade, minimum grade, and the number of grades n each grade range. Test the program for cases including 4 grades, 10 grades, and 20 grades with the grades reasonably distributed between the grade ranges.Explanation / Answer
Answer for 3
> n=10; % number of lines
a= inputdlg('enter x coordinates','test',n)
x=str2num(a{1})
b= inputdlg('enter y coordinates','test',n)
y=str2num(a{1})
x=input('enter x coordinates between square bracket, like [1 2 3] ')
y=input('enter y coordinates between square bracket, like [1 2 3] ')