0

I have written the following code:

function [ z,a ] = complx( numb )
z=abs(numb);
a=angle(numb);

end

but I get back just z and not a

gbox
  • 12,867

1 Answers1

2

You should call the function as followed:

[z,a]=complx(numb)

If you call the function just:

complx(numb)

then it returns only the first output, z.

Mary Star
  • 13,956