Software Workshop
Software Workshop
Central Tendency
Measures: Mean,
Median, Mode
1. Measure of
Dispersion: Variance,
Standard Deviation
2. Write a python
program to compute
3. Central tendency
measures: Mean,
Median, Mode
4. Measure of
Dispersion: Variance,
Standard Deviation
1. Array Operations:
i) Create a matrix and perform basic operations like addition, subtraction,
multiplication, and division.
4. String operation
i) Write a script that concatenates two or more strings using the + operator.
ii) Write a script that calculates the length of a string using the length function.
iii) Write a script that extracts specific characters from a string using indexing.
5. Basic Function:
i) Write a simple function that takes two inputs and returns their sum.
ii) Call the function from a script and display the result.
iii) Write a function that takes three inputs (e.g., a, b, c) and returns their sum.
iv) Write a function that takes one input and returns two outputs.
6. Plotting a Graph:
i) Generate sinusoidal signal and plot it.
ii) Generate sinusoidal cosine signal with three different amplitude and
a) Create multiple plots on the same graph.
b) Create multiple plots within a single figure window.
7. Write a MATLAB program to determine whether a given year is a leap year (try to
change the given value of year and observe the outcome)
𝑥1 + 2𝑥2 = 5
8. Determine the value of x1 and x2 of the following equations using MATLAB:
3𝑥1 + 4𝑥2 = 6
7𝑥1 + 8𝑥2 = 9
9. Write MATLAB code to find and display all integers between 1 and 10000 which
divide by 37.
10. Write MATLAB code for the ‘Guess My Number’ game. First, the computer picks a
random integer between 1 and 10 using the randi command. Next, the user is asked to
enter their guess. If the guess matches the chosen number, display a congratulations
message. Otherwise, display a ‘better luck next time’ message.
11. Threshold value of threshold device is 5℃. If room temperature is greater than or less
than the 5℃, then display the difference of threshold value and room temperature.