1,988
11
Report, 2 pages (300 words)

Matlab report bingo card assignment

Unfortunately found this assignment much more difficult than the previous one; therefore I couldn’t get the bingo card to work in the way that I would have liked it to. I firstly randomly generated a ex. Matrix as shown in the editor window print out, I am happy with this part as it works perfectly, with all the numbers being displayed in the right places with a full range of 1-90. The problems started to arise when deleting the terms, I got it to work where it randomly deletes 4 terms in each row, however I could not produce a code that ensures that there is always 1 number in each row.

I then created a for loop, which selects the balls, we have to use the arranged function otherwise the balls would just come out in order from 1-90. Whilst in the for loop I used to the isomer function to cross check the balls that were drawn to the ones that have been produced on a card, this works by whenever number drawn (represented by B) is in the array it produces a 1 and when it is not in the array in produces a zero, therefore we can assign certain quotes for when the isomer term is zero or 1 e. G. If then we can display sorry no match etc.

I also signed for each number the quote the bingo caller would say to make it more enjoyable for the user. Unfortunately I couldn’t get the bingo card to distinguish when the player had won, I tried summing up the isomer terms so that when sum(l)== 15 (which is the number of numbers in the card after terms had been deleted) displayed BINGO! However could not get the code to work so I removed it. Overall am disappointed with the code itself as it doesn’t feature some of the main aspects that would of liked, I am happy however that I eventually was able to be able to match terms and produce unique sayings for each number.

Thank's for Your Vote!
Matlab report bingo card assignment. Page 1
Matlab report bingo card assignment. Page 2

This work, titled "Matlab report bingo card assignment" was written and willingly shared by a fellow student. This sample can be utilized as a research and reference resource to aid in the writing of your own work. Any use of the work that does not include an appropriate citation is banned.

If you are the owner of this work and don’t want it to be published on AssignBuster, request its removal.

Request Removal
Cite this Report

References

AssignBuster. (2022) 'Matlab report bingo card assignment'. 3 January.

Reference

AssignBuster. (2022, January 3). Matlab report bingo card assignment. Retrieved from https://assignbuster.com/matlab-report-bingo-card-assignment/

References

AssignBuster. 2022. "Matlab report bingo card assignment." January 3, 2022. https://assignbuster.com/matlab-report-bingo-card-assignment/.

1. AssignBuster. "Matlab report bingo card assignment." January 3, 2022. https://assignbuster.com/matlab-report-bingo-card-assignment/.


Bibliography


AssignBuster. "Matlab report bingo card assignment." January 3, 2022. https://assignbuster.com/matlab-report-bingo-card-assignment/.

Work Cited

"Matlab report bingo card assignment." AssignBuster, 3 Jan. 2022, assignbuster.com/matlab-report-bingo-card-assignment/.

Get in Touch

Please, let us know if you have any ideas on improving Matlab report bingo card assignment, or our service. We will be happy to hear what you think: [email protected]