0% found this document useful (0 votes)
11 views2 pages

Software Workshop

Uploaded by

vishal163rathor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Software Workshop

Uploaded by

vishal163rathor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

List of Experiments

Assignment 1: Basics of MATLAB

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.

2. Decision control statements


i) Write a script that uses if-else statements to determine whether a number is
positive, negative, or zero.

3. For Loop Basics:


i) Write a script that uses a for loop to print numbers from 1 to 10.
ii) Use a for loop to calculate the sum of numbers from 1 to 100.

For Loop with Arrays:


i) Use a for loop to find the maximum value in an array.

While Loop Basics:


i) Write a script that uses a while loop to print numbers from 1 to 10.
ii) Use a while loop to calculate the factorial of a number.

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy