Write a MATLAB function called "matrix Muli" that takes in two matrices A and input and return the product matrix Pas output, where =AXI. Du not use the readily available matrix multiply function *" when you write this function file. In case the call

2 Ansichten (letzte 30 Tage)
Write a MATLAB function called "matrix Muli" that takes in two matrices A and input and return the product matrix Pas output, where =AXI. Du not use the readily available matrix multiply function *" when you write this function file. In case the caller
inputs A and such that they cannot be multiplied, then the function should also return
an error stating the reason and wet l ar value of .99
  2 Kommentare
Stephen23
Stephen23 am 25 Aug. 2020
Bearbeitet: Stephen23 am 25 Aug. 2020
"Write a MATLAB function called "matrix Muli" ..."
matrix Muli is not a valid function name. Space cahracters are not permitted in function names.
"...that takes in two matrices A and input..."
Although input is overused by beginners, it is the name of an inbuilt function and should not be shadowed.
"... and return the product matrix Pas output, where =AXI."
I was not defined so far. Using uppercase X to represent matrix multiplication is highly unusual.
"In case the caller inputs A and such that they cannot be multiplied, then the function should also return an error stating the reason and wet l ar value of .99"
Very unclear: errors are thrown, but returning a particular value is not an error, just a special case. Which do they want? The last part of the sentence is not comprehensible.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by