cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

MathCAD phase starts from circa -80 instead -270 deg

ptc-5430751
1-Visitor

MathCAD phase starts from circa -80 instead -270 deg

Hi all,

Its me again . I dont know how is it possible but when I make a bode plot in mathCAD phase is starting from different value than it is supposed to. Look into file. The phase should start at -270 like on the diagram from matlab. What could be wrong?

4 REPLIES 4
Werner_E
25-Diamond I
(To:ptc-5430751)

arg() will give you values in the range of -180° to +180°. So you will never get -270° but rather +90°. If you want the values in the range (-360°; 0°] you could simply subtract 180 to phase().

BTW, shouldn't you comment on and so close a previous question?

Of course. I will do that.

And can you suggest another function that will give bigger range? Thank you

Werner_E
25-Diamond I
(To:ptc-5430751)

And can you suggest another function that will give bigger range?

This wouldn't be a function but just a relation as of the ambiguity. And what result would you expect for -1-1j? Mathcad's arg() will give you -3pi/4 (-135°), but of course you may add/subtract any integer multiple of 2pi (360°).

You may change the desired range (still of length 360°) using an if. Furthermore there is a change in sign which I have not really corrected with the change in phase. Also w shoul have a smaller step width.

See if the attached helps.

18.02.png

EDIT: Now the attachment should ber there, too.

RichardJ
19-Tanzanite
(To:ptc-5430751)

You might find the attached workshet useful

Announcements

Top Tags