IT Workshop (MATLAB) Important Topics
IT Workshop (MATLAB) Important Topics
Understand the purpose and usage of commands like clc and clear—clc clears the
Command Window, while clear removes variables from the workspace.
Practice creating variables, modifying them, and clearing them from the workspace.
Example: Write a command to display today’s date using date and print a custom
message with disp.
Learn to create and manipulate vectors and matrices, including differentiating between
row and column vectors.
Practice accessing specific elements by index and deleting rows or columns.
Example: Write a script to create a 3x3 matrix, then find the maximum value in each row
using max(matrix,[],2).
Work on decision-making structures like if-else for basic conditions and switch-case
for multiple specific cases.
Create loops to perform repetitive tasks, such as counting elements that meet a certain
condition.
Example: Write a script that uses a switch-case statement to print a message based on
the day of the week, using weekday.
Practice reading from and writing to files, particularly .csv files, using functions like
readmatrix and writematrix.
Example: Import data from a .csv file, calculate the mean of each column, and save the
results into a new file.
Explore different types of plots (line, bar, scatter, etc.), and understand how to add labels,
legends, and titles.
Practice creating multiple plots in a single figure using subplots.
Example: Generate a sine and cosine plot on the same graph with plot(x, sin(x),
'r') and plot(x, cos(x), 'b'), adding a legend to differentiate them.
6. GUI Basics and App Designer (If Included)
Focus on hands-on tasks that involve data processing and visualization, similar to real-
world scenarios.
Practice simulating data collection and performing basic analysis (e.g., calculating
average, finding max/min values).
Example: Write a script that simulates temperature readings over a 24-hour period
(hourly values). Plot this data on a time-series plot, use markers to highlight each data
point, and add a title and labels for clarity.
Additional Example: Create a script that generates three random datasets representing
different categories (e.g., sales, profit, and revenue). Plot these datasets as a grouped bar
chart, customize the colors for each dataset, and add a legend, title, and axis labels for
clarity. This example provides practice with organizing and presenting data in a way that
is easy to interpret.