Store the following complex numbers in variables, and print them in the form a + bi. 3-2i 3
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:14| Question number:22.14
All Answers
total answers (1)
>> z1 = 3-2*i;
>> z2 = sqrt(-3);
>> fprintf('z1 = %.2f + %.2fi\n',real(z1),imag(z1))
z1 = 3.00 + -2.00i
>> fprintf('z2 = %.2f + %.2fi\n',real(z2),imag(z2))
z2 = 0.00 + 1.73i
need an explanation for this answer? contact us directly to get an explanation for this answer