0% found this document useful (0 votes)
21 views1 page

Q4

This MATLAB code defines two complex matrices d and e, performs element-wise addition, subtraction, multiplication, and division on them, and displays the results. It adds, subtracts, multiplies, and divides the complex matrices d and e and displays the string "addition is", "subtraction is", "multiplication is", and "division is" along with the results.

Uploaded by

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

Q4

This MATLAB code defines two complex matrices d and e, performs element-wise addition, subtraction, multiplication, and division on them, and displays the results. It adds, subtracts, multiplies, and divides the complex matrices d and e and displays the string "addition is", "subtraction is", "multiplication is", and "division is" along with the results.

Uploaded by

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

d=[1+2j 3; 7 5j];

e=[2+3j 5+5j; 0 1-8j];


disp('addition is')
a=d+e
disp('subtraction is')
b=d-e
disp('multiplication is')
c=d*e
disp('division is')
c=d/e

You might also like