Help with matrix that stores info/interactive?
Mostrar comentarios más antiguos
I'm trying to create a matrix/code for the following stipulations. First, create a matrix that stores the name of products and price. 1st and 2nd column should be the product name and its price, respectively. The number of product items should be flexible. Your program will ask to input product name, and it should display the price by looking at the matrix you defined. If the input product name is not in the list, it will display “Item is not in our store. Please retry.” This query should be repeated until you type in “Bye”.
How can I make a matrix interactive like this?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!