basic matlab
basic matlab
1. Write a MATLAB script to display "Hello, World!" and get user input to
display a personalized message.
2. Create a MATLAB script that performs basic arithmetic operations
(addition, subtraction, multiplication, division) on two user-input numbers
and displays the results.
3. Write a MATLAB function to convert temperature from Celsius to
Fahrenheit and vice versa.
4. Develop a MATLAB script to solve a quadratic equation (ax2+ bx+c=0)
and display the roots.
5. Implement a MATLAB script that uses if-else statements to Categorize a
given number as positive, negative, or zero.
6. Write a MATLAB script that demonstrates the use of for and while loops to
compute the factorial of a number.
7. Create a MATLAB function that takes a matrix as input and returns the
transpose of the matrix.
8. Write a MATLAB script to perform matrix addition, subtraction, and
multiplication using user-defined matrices.
9. Develop a MATLAB script to plot a sine wave and a cosine wave on the
same graph with appropriate labels and legends.
10.Implement a MATLAB script to read data from a CSV file and plot it using a
bar chart.
11.Write a MATLAB script to create sub plots of various mathematical
functions (sine, cosine, exponential) in a single figure.
12.Create a MATLAB script to read and display an image, then convert it to
grayscale.