Assignment Help >> MATLAB Programming
The MATLAB language has the built-in ability to perform mathematical operations on complex numbers. However there are times when it is useful to treat complex numbers as structures. Write a set of functions with the following capability and a script to verify that they work correctly. Use an input statement to get the real and imaginary parts of the 2 complex numbers in the script.
cmplx=makeComplex(real, imag)
res=cmplxAdd(cmpxa, cmpxb)
res=cmplxMult(cmpxa, cmpxb)