This is a simple Analysis on MatLab to visualize the data of a Twenty20 Wordcup match.
In this tutorial i have used Matlab to plot the statistics of a T20 worldcup match played between australia and west indies. Matlab provides a wide array of plotting commands and options to represent any kind of statistical data. The data can be displayed in many formats like graphs, bar charts, pie charts,etc.
I have taken the data from cricinfo.com website then i have written a matlab m-file to produce the different plots. The data is written in to an excel file and is accessed by Matlab thorough the xlsread command:
The Bar Graph
The second plot is Bar-chart representing the runs aganist the overs and fall of wickets for both the teams.The Bar in red represents the first team(West Indies) and the Bar in blue represents the second team(Australia).
The data inside the excel sheet is given in the form of runs per over for each over for both the teams. As this is a twenty20 Match there are only 20 overs. The excel file also contains information about the fall of wickets for each team representing the number of wickets down for the particular over.
This information is accessed through matlab and is processed to obtain the manipulated data which is required for plotting the graphs. The fall of wickets are also plotted in the same bar-graph represented as colored circles on the bars of the respective teams. This is done by plotting the overs where there is a wicket fall on the x-axis and the runs scored in that over are plotted on the y-axis.
All these functions are written into a Matlab GUI file.
The Line Chart
The aim of this line chart is to give an idea of the rate of change of runs against overs.
In the first plot the scores of each team are plotted against overs. It also represents the fall of wickets for each team. To achieve this I have created a Matlab M-file and gave the necessary instructions to generate the plot according to the data that has been fed into it. Here the runs in the excel file are given as runs in the overs basis, so a function is written to make the data cumulative (i.e the total runs until that over) , these points are plotted in the y-axes with overs in the x-axis. Then these points are joined to produce a graph. The same is done for the other team as well.
The wickets are plotted in the same way as they are plotter for the bar-graph.
The Program
Similar topics you might like…
Object Counting using MATLAB
Analog Circuit Analysis with Simulink
Interfacing LCD with 8051 microcontroller
8051 Microcontroller Reset Circuit
Nice post and this enter helped me alot in my college assignement. Say thank you you seeking your information.
Now I’m like, well duh! Truly thankufl for your help.
Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.
Thanks for all of the work on this site. Gloria really loves making time for investigations and it’s easy to see why. A number of us know all relating to the compelling way you produce effective solutions through your blog and in addition improve contribution from other ones about this matter and our princess is without a doubt learning a whole lot. Take pleasure in the remaining portion of the year. You’re performing a tremendous job.
Wow! Great tinihkng! JK
Real brain power on dsiplay. Thanks for that answer!
Rattling nice pattern and good written content , very little else we need : D.
Respect to article author , some great information . “It’s always too early to quit.” by Norman Vincent Peale.
Great post, I believe blog owners should learn a lot from this blog its real user pleasant. So much good information on here
.
I don’t know who you wrote this for but you hleepd a brother out.
Good website! I truly love how it is simple on my eyes and the data are well written. I am wondering how I could be notified whenever a new post has been made. I have subscribed to your RSS feed which must do the trick! Have a great day! “Reputation is what other people know about you. Honor is what you know about yourself.” by Lois McMaster Bujold.