Question 4
Question 4
% Roll No: 10
% Question 4
clc;
% Displaying results
disp('Row Matrix x is:');
disp(x);
disp('************************************************************************
**************************');
disp('Square Root of x (handling negatives as complex numbers):');
disp(sqrt_X1);
disp('************************************************************************
**************************');
disp('Sine of x in degrees:');
disp(sin_x);
disp('************************************************************************
**************************');
disp('Cosine of x in degrees:');
disp(cos_x);
Columns 8 through 14
Columns 15 through 21
******************************************************************************
********************
Square Root of x (handling negatives as complex numbers):
Columns 1 through 4
1
Columns 5 through 8
Columns 9 through 12
Columns 13 through 16
Columns 17 through 20
Column 21
2.2361 + 0.0000i
******************************************************************************
********************
Sine of x in degrees:
Columns 1 through 7
Columns 8 through 14
Columns 15 through 21
******************************************************************************
********************
Cosine of x in degrees:
Columns 1 through 7
Columns 8 through 14
Columns 15 through 21