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
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
You should call the function as followed:
If you call the function just:
complx(numb)
then it returns only the first output, z.