Question
Hello, can you do this in matlab full solution thanks
Purpose: To practice using the MatLab interface. practice with Matrix Arithmetic Operation. Degree of Difficulty: Easy After the fourth shinobi world war, it becomes a rule in Konoha that to be a jenin (the lowest level of ninja) from an academic student (ninja-student) anyone needs to get 1000 points. A student can earn points by finishing different missions. Below is a chart showing the individual mission points based on the difficulty level -rank: 50 T-rank ; 25 z-rank: 80 Below is a table showing the number of missions completed by Sarada, Boruto, Shikadai, and Mitsuki in the last academic year Sarada Boruto Shikadai Mitsuki X-rank 9 Y-rank 7 Z-rank 5 12 6 9 6 8 Your job is to use MatLab to create a MatLab file (with a m extension) that calculates the total points that they earned in an academic year. This should be done using matrix multiplication (remember, every variable in MatLab ist a matrix) Also, you need to show the jenin status of Sarada. Boruto, Shikadai, and Mitsuki by comparing the total points with the required pass point 1000 This should be done by creating a row vector which only consists O and 1 (where 1 indicates pass and O indicates fail). You should need no more than 4 ines of code. You will not need any loops Your file will need to output the jenin status of Sarada. Boruto. Shikadai, and Mitsuki in a single line to the console when run. Your output should look like the following jeninStatus 0101 Hint: The order of operands may matter in matrix multiplication If youre getting errors. try swapping the position of the operands Hint 2 If you dont put a semi-colon at the end of a ine. that line will be printed as output to the console. This isnt a trick question! This question is to get you in the mindset of using Matrix math
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Screenshot of Code

A = [50,25,80] B = [9,5,11,6;7,12,9,6;4,6,2,8] %Array containing mission completed by sarada,boruto, shikadaǐ & Mitsuki Y A*B

Output

A1x3 50 25 80 В 3x4 9 5 11 6 7 12 96 4 Y 1x4 945 1030 935 1090 jeninStatus- 1x4 logical array

Code to Copy

*********************************************************************

A = [50,25,80] %Initiliaze 1d vector of mission points

B = [9,5,11,6;7,12,9,6;4,6,2,8] %Array containing mission completed by sarada,boruto,shikadai & Mitsuki

Y = A*B %finding product of 2matrices

jeninStatus = (Y >= 1000) %generating jenin status

*****************************************************************

Add a comment
Know the answer?
Add Answer to:
Hello, can you do this in matlab full solution thanks Purpose: To practice using the MatLab...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • In Java(using BlueJ) Purpose Purpose is to practice using file input and output, and array list of objects. Also, this lab specification tells you only what to do, you now have more responsibility to...

    In Java(using BlueJ) Purpose Purpose is to practice using file input and output, and array list of objects. Also, this lab specification tells you only what to do, you now have more responsibility to design how to do it. Problem description You are given a text file called 'Students.txt' that contains information on many students. Your program reads the file, creating many Student objects, all of which will be stored into an array list of Student objects, in the Students...

  • MATLAB ONLY gauss.jpg BELOW Instructions: The following problems can be done interactively or by writing the...

    MATLAB ONLY gauss.jpg BELOW Instructions: The following problems can be done interactively or by writing the commands iın an M-file (or by a combination of the two). In either case, record all MATLAB input commands and output in a text document and edit it according to the instructions of LAB 1 and LAB 2. For problem 2, include a picture of the rank-1 approximation. For problem 3, include a picture of the rank-10 approximation and for problem 4, include a...

  • In this exercise you will work with LU factorization of an matrix A. Theory: Any matrix A can be ...

    In this exercise you will work with LU factorization of an matrix A. Theory: Any matrix A can be reduced to an echelon form by using only row replacement and row interchanging operations. Row interchanging is almost always necessary for a computer realization because it reduces the round off errors in calculations - this strategy in computer calculation is called partial pivoting, which refers to selecting for a pivot the largest by absolute value entry in a column. The MATLAB...

  • java This lab is intended to give you practice creating a class with a constructor method,...

    java This lab is intended to give you practice creating a class with a constructor method, accessor methods, mutator methods, equals method , toString method and a equals method. In this lab you need to create two separate classes, one Student class and other Lab10 class. You need to define your instance variables, accessor methods, mutator methods, constructor, toString method and equals method in Student class. You need to create objects in Lab10 class which will have your main method...

  • 23.4 PROJECT 4: Using Pandas for data analysis and practice with error handling Overview In this...

    23.4 PROJECT 4: Using Pandas for data analysis and practice with error handling Overview In this project, you will use the Pandas module to analyze some data about some 20th century car models, country of origin, miles per gallon, model year, etc. Provided Input Files An input file with nearly 200 rows of data about automobiles. The input file has the following format (the same as what you had for your chapter 13 labs). The following is an example of...

  • In Python Question 3 (13 points): Purpose: To practice your ability to modify lists and compute...

    In Python Question 3 (13 points): Purpose: To practice your ability to modify lists and compute with lists of lists Degree of Difficulty: Moderate For this question, you are given some population estimates, by age group, from Statistics Canada for some provinces. Starter File a5q3 starter.py is a file that contains a list of lists, to which the variable Pop-data refers, which represents 2020 population numbers. The first item in Pop_data is a list whose first item is the string...

  • 23.4 Project 4: Using Pandas for data analysis and practice with error handling Python Please! 23.4...

    23.4 Project 4: Using Pandas for data analysis and practice with error handling Python Please! 23.4 PROJECT 4: Using Pandas for data analysis and practice with error handling Overview In this project, you will use the Pandas module to analyze some data about some 20th century car models, country of origin, miles per gallon, model year, etc. Provided Input Files An input file with nearly 200 rows of data about automobiles. The input file has the following format (the same...

  • I need help solving these questions,please don’t know how to solve it by using matlab.!

    i need help solving these questions,please don’t know how to solve it by using matlab.! Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *base *height, where the base is length *width. Prompt the user to enter values for the length, width, and height, and then calculate the volume of the pyramid. When the user enters each value, he or she will then also be prompted to...

  • Java Description You are given the task of reading a student’s name, semester letter grades, and...

    Java Description You are given the task of reading a student’s name, semester letter grades, and semester hours attempted from one file; calculating the semester GPA; and writing the student’s name and semester GPA to another file. GPA Calculation GPA = Total Quality Points / Hours Attempted Quality Points for each class = Grade Conversion Points * Hours Attempted The letter grades with corresponding point conversions is based upon the following table: Letter Grade Conversion Points A 4 points B...

  • PYTHON 3 node Node ADT Question. Question 3 (18 points): Purpose: To practice working with node chains created using...

    PYTHON 3 node Node ADT Question. Question 3 (18 points): Purpose: To practice working with node chains created using the Node ADT to implement slightly harder functionality Degree of Difficulty: Moderate to Tricky In this question you'll implement merge sort for node chains! Recall, merge sort is a divide-and-conquer technique that uses recursion to sort a given sequence (in this case a node chain). A overview of the algorithm is given below. Algorithm mergeSort (NC) Borts node chain NC using...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT