Professional Documents
Culture Documents
TASK 1:
▪ Take the help of the commands “sin, ver, who, whos, exp, sum, and sqrt’’
OUTPUT:
TASK 3:
▪ Investigate the difference between multiplication * and element-wise multiplication .* of vectors/matrices.
OUTPUT:
TASK 4:
▪ Generate a complex-valued matrix as defined below and calculate the absolute value of this matrix.
a = ones(1,10) + i*(1:10)
OUTPUT:
• electronic1
• 1electronic
• Sir_syed_university_of_engineering__Andtechnology_help
OUTPUT:
REASON:
In matlab,a variable always starts with a letter not with any number or any
character so every variable is legal which starts with a letter and every variable is
illegal which starts without a letter so in given condition “1electronic”is illegal
variable and rest of two are legal variables.